diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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); } |