From 1e8d742c011903343d57c9eab69220e43e101a35 Mon Sep 17 00:00:00 2001 From: Marcos Zuriaga Date: Sat, 8 Oct 2016 18:24:30 +0200 Subject: Utils class simplification of microtime method utils unit tests --- lib/Utility/Utils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Utility/Utils.php b/lib/Utility/Utils.php index e75df4e1..c833cadc 100644 --- a/lib/Utility/Utils.php +++ b/lib/Utility/Utils.php @@ -23,8 +23,7 @@ class Utils { * @return int the current unix time in milliseconds */ public static function getMicroTime() { - list($millisecs, $secs) = explode(" ", microtime()); - return $secs . substr($millisecs, 2, 6); + return microtime(true); } /** -- cgit v1.2.3