summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class6
1 files changed, 2 insertions, 4 deletions
diff --git a/it.class b/it.class
index 7d96342..1104894 100644
--- a/it.class
+++ b/it.class
@@ -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;
}