Created
September 26, 2014 10:41
-
-
Save Lewiscowles1986/ed1646c6e5d610abe164 to your computer and use it in GitHub Desktop.
microtime str
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
echo time()."\r\n"; | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
var_dump( microtime_str() ); | |
function microtime_str() { | |
list($usec, $sec) = explode(" ", microtime()); | |
$usec = str_replace("0.","-",$usec); | |
return "{$sec}{$usec}"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment