summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2018-11-16 13:57:34 +0100
committerUrban Müller2018-11-16 13:57:34 +0100
commitc40446509e5e53530ac45847e5088f09d1804ab0 (patch)
tree5140916ba930d0728e9b89d62bac5248f15681e2 /it.class
parent03e493d144fb3b4e524f0d5e757d82021d1cbed8 (diff)
downloaditools-c40446509e5e53530ac45847e5088f09d1804ab0.tar.gz
itools-c40446509e5e53530ac45847e5088f09d1804ab0.tar.bz2
itools-c40446509e5e53530ac45847e5088f09d1804ab0.zip
replace horribly named function with slight less horribly named one
Diffstat (limited to 'it.class')
-rw-r--r--it.class10
1 files changed, 5 insertions, 5 deletions
diff --git a/it.class b/it.class
index baaf91c..89d799a 100644
--- a/it.class
+++ b/it.class
@@ -115,7 +115,7 @@ static function log_line($name, $line)
static function timerlog($label = '')
{
if ($GLOBALS['debug_timerlog'])
- $GLOBALS['ULTRATIMERLOG'] .= sprintf(" %s:%d", $label, (microtime(true) - $GLOBALS['ULTRATIME'])*1000);
+ $GLOBALS['ULTRATIMERLOG'] .= sprintf(" %s:%d", $label, (gettimeofday(true) - $GLOBALS['ULTRATIME'])*1000);
}
@@ -605,10 +605,10 @@ static function exec(/* $cmd, $values1 = array(), ... */)
$args = func_get_args();
$cmd = call_user_func_array('it::shell_command', $args);
- $before = microtime(true);
+ $before = gettimeofday(true);
$result = EDC('noexec') ? "" : (string)shell_exec($cmd);
- @it::log('exec', round((microtime(true) - $before)*1000) . "\t$cmd");
+ @it::log('exec', round((gettimeofday(true) - $before)*1000) . "\t$cmd");
return $result;
}
@@ -624,13 +624,13 @@ static function system(/* $cmd, $values1 = array(), ... */)
$args = func_get_args();
$cmd = call_user_func_array('it::shell_command', $args);
- $before = microtime(true);
+ $before = gettimeofday(true);
if (!EDC('noexec'))
system($cmd, $result);
else
$result = 0;
- @it::log('exec', round((microtime(true) - $before)*1000) . "\t$cmd");
+ @it::log('exec', round((gettimeofday(true) - $before)*1000) . "\t$cmd");
return $result;
}