Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
microtime str
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
You can’t perform that action at this time.