commit | 8f0a8f693307a6d04b8a50aa11f81041c961adf6 | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Sat Oct 07 01:17:25 2006 +0000 |
committer | admin <devnull@localhost> | Sat Oct 07 01:17:25 2006 +0000 |
tree | 698f2b4d004a5dd604ded5138fc6afdcb776ade0 | |
parent | 61c5717b76bc39823215aaceacdba97264f668d4 [diff] [blame] |
diff --git a/system/libraries/Benchmark.php b/system/libraries/Benchmark.php index d29e917..c20a542 100644 --- a/system/libraries/Benchmark.php +++ b/system/libraries/Benchmark.php
@@ -71,9 +71,16 @@ { return '{elapsed_time}'; } + + if ( ! isset($this->marker[$point1])) + { + return ''; + } if ( ! isset($this->marker[$point2])) + { $this->marker[$point2] = microtime(); + } list($sm, $ss) = explode(' ', $this->marker[$point1]); list($em, $es) = explode(' ', $this->marker[$point2]);