Replaced custom utime() function with microtime(true)

This commit is contained in:
Mike Rostermund
2016-01-08 13:33:32 +01:00
parent 6ac4a5c232
commit e2d1a8e7d9
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);