From ad8dc8911c0247b137258c8592ad32376ec880b6 Mon Sep 17 00:00:00 2001 From: Andrey Pankov Date: Fri, 22 Feb 2013 15:00:26 +0300 Subject: [PATCH] fixing bug how execution time is calculated --- examples/example01/index.php | 2 +- examples/example03/index.php | 2 +- lib/limonade.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/example01/index.php b/examples/example01/index.php index dd0d4df..28ff87b 100644 --- a/examples/example01/index.php +++ b/examples/example01/index.php @@ -84,7 +84,7 @@ function image_show_jpeg_only() function after($output, $route) { - $time = number_format( (float)substr(microtime(), 0, 10) - LIM_START_MICROTIME, 6); + $time = number_format( microtime(true) - LIM_START_MICROTIME, 6); $output .= "\n\n"; $output .= "\n"; $output .= "