Skip to content

Instantly share code, notes, and snippets.

@khairulhasanmd
Last active July 13, 2017 06:26
Show Gist options
  • Save khairulhasanmd/3682256895a90fc31f45eb75441fc7f8 to your computer and use it in GitHub Desktop.
Save khairulhasanmd/3682256895a90fc31f45eb75441fc7f8 to your computer and use it in GitHub Desktop.
php time required for a code run in seconds
<?php
$start = microtime(true);
//some code
$now = microtime(true);
echo $now - $start . '<br>';
$start = $now;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment