diff options
| -rwxr-xr-x | src/globals.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 () { |