summaryrefslogtreecommitdiffstats
path: root/system/libraries/Benchmark.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-07 03:17:25 +0200
committeradmin <devnull@localhost>2006-10-07 03:17:25 +0200
commit8f0a8f693307a6d04b8a50aa11f81041c961adf6 (patch)
tree698f2b4d004a5dd604ded5138fc6afdcb776ade0 /system/libraries/Benchmark.php
parent61c5717b76bc39823215aaceacdba97264f668d4 (diff)
Diffstat (limited to 'system/libraries/Benchmark.php')
-rw-r--r--system/libraries/Benchmark.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/libraries/Benchmark.php b/system/libraries/Benchmark.php
index d29e91798..c20a54269 100644
--- a/system/libraries/Benchmark.php
+++ b/system/libraries/Benchmark.php
@@ -71,9 +71,16 @@ class CI_Benchmark {
{
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]);