Merge pull request #2719 from SaaldjorMike/del-utime-func

Replaced custom utime() function with microtime(true)
This commit is contained in:
Neil Lathwood
2016-01-10 22:43:31 +00:00
8 changed files with 14 additions and 29 deletions
+2 -10
View File
@@ -12,15 +12,7 @@
*/
function utime() {
$time = explode(' ', microtime());
$usec = (double) $time[0];
$sec = (double) $time[1];
return ($sec + $usec);
}
$start = utime();
$start = microtime(true);
require_once 'Net/IPv4.php';
@@ -54,7 +46,7 @@ require 'includes/graphs/graph.inc.php';
$console_color = new Console_Color2();
$end = utime();
$end = microtime(true);
$run = ($end - $start);
+2 -2
View File
@@ -72,7 +72,7 @@ $config['memcached']['ttl'] = $config['time']['now']+300;
Plugins::start();
$runtime_start = utime();
$runtime_start = microtime(true);
ob_start();
@@ -263,7 +263,7 @@ else {
</div>
<?php
$runtime_end = utime();
$runtime_end = microtime(true);
$runtime = $runtime_end - $runtime_start;
$gentime = substr($runtime, 0, 5);