From a2940a363ba6c22bc1058f9520c29ed5949f345f Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Wed, 26 Jul 2017 16:46:34 +0100 Subject: bug fix --- src/globals.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/globals.php') diff --git a/src/globals.php b/src/globals.php index e475f57..d41760d 100755 --- a/src/globals.php +++ b/src/globals.php @@ -258,12 +258,12 @@ function mytime() { return time(); } function mymtime() { - list($usec, $sec) = explode(" ", microtime()); + list($usec, $sec) = explode(" ", microtime(true)); return (float) (((int) (1000*$usec))/1000 + $sec); } function myunique() { - list($usec, $sec) = explode(" ", microtime()); - return (int) (((int)($usec * 100)) + (((int)$sec) % 1000000)); + list($usec, $sec) = explode(" ", microtime(true)); + return (int) (100*($usec + (((int)$sec) % 1000000) )); } //retorna data e hora atuais function now () { -- cgit v1.2.3