From 70b8eb7bd4ae8955b509b86d18fa0920116b55bf Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 18 Aug 2016 22:04:02 +0200 Subject: derp --- lib/Utility/Time.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/Utility/Time.php b/lib/Utility/Time.php index 363583466..7565c53ab 100644 --- a/lib/Utility/Time.php +++ b/lib/Utility/Time.php @@ -20,11 +20,8 @@ class Time { * @return int the current unix time in miliseconds */ public function getMicroTime() { - $utimestamp = microtime(true); - $timestamp = floor($utimestamp); - $milliseconds = round(($utimestamp - $timestamp) * 1000000); - $result = ($timestamp * 1000000) + $milliseconds; - return intval($result); + list($millisecs, $secs) = explode(" ", microtime()); + return $secs . substr($millisecs, 2); } -} \ No newline at end of file +} -- cgit v1.2.3