Skip to content

Instantly share code, notes, and snippets.

@markward
Created March 26, 2014 13:52
Show Gist options
  • Save markward/9783584 to your computer and use it in GitHub Desktop.
Save markward/9783584 to your computer and use it in GitHub Desktop.
$mtime = microtime();
$mtime = explode(' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
//Do something!
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = number_format($endtime - $starttime, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment