Created
August 27, 2013 10:21
-
-
Save erasin/6351894 to your computer and use it in GitHub Desktop.
php 毫秒级别
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function microtime_float() | |
{ | |
list($usec, $sec) = explode(" ", microtime()); | |
return ((float)$usec + (float)$sec); | |
} | |
echo microtime_float(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment