summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class7
1 files changed, 1 insertions, 6 deletions
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);
}