diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -493,12 +493,10 @@ static function exec(/* $cmd, $values1 = array(), ... */) $args = func_get_args(); $cmd = call_user_func_array('it::shell_command', $args); - $s = gettimeofday(); + $before = microtime(true); $result = EDC('noexec') ? "" : (string)shell_exec($cmd); - $e = gettimeofday(); - $msec= intval(($e['sec'] - $s['sec']) * 1000 + ($e['usec'] - $s['usec']) / 1000); - @it::log('exec', "$msec\t$cmd"); + @it::log('exec', round((microtime(true) - $before)*1000) . "\t$cmd"); return $result; } |