diff options
author | Bernhard Posselt <bep@foryouandyourcustomers.com> | 2016-08-18 22:04:02 +0200 |
---|---|---|
committer | Bernhard Posselt <bep@foryouandyourcustomers.com> | 2016-08-18 22:04:02 +0200 |
commit | 70b8eb7bd4ae8955b509b86d18fa0920116b55bf (patch) | |
tree | 787f6c077953cc7d46766a0ee21c749fb346591c /lib/Utility | |
parent | 31f0d12836c24ca10b329e4e9b5b4dcd1ff7e2f4 (diff) |
derp
Diffstat (limited to 'lib/Utility')
-rw-r--r-- | lib/Utility/Time.php | 9 |
1 files 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 +} |