From 4c00390d2a24fdaaf38969abdae8fdceede7c3df Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 24 Aug 2012 13:28:55 +0000 Subject: Also use float time in it::timerlog() --- it.class | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 6a9bd4c..739653b 100644 --- a/it.class +++ b/it.class @@ -104,12 +104,7 @@ static function log($name /* ... */) static function timerlog($label = '') { if ($GLOBALS['debug_timerlog']) - { - $s = $GLOBALS['ULTRATIME']; - $e = gettimeofday(); - $msec= ($e['sec'] - $s['sec']) * 1000 + ($e['usec'] - $s['usec']) / 1000; - $GLOBALS['ULTRATIMERLOG'] .= sprintf(" %s:%d", $label, $msec); - } + $GLOBALS['ULTRATIMERLOG'] .= sprintf(" %s:%d", $label, (microtime(true) - $GLOBALS['ULTRATIME'])*1000); } -- cgit v1.2.3