Skip to content

Instantly share code, notes, and snippets.

@edcottrell
Created July 10, 2014 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edcottrell/c204037decf9837cd003 to your computer and use it in GitHub Desktop.
Save edcottrell/c204037decf9837cd003 to your computer and use it in GitHub Desktop.
Test real PHP timeout
<?php
$start = microtime();
while(microtime() - $start < 60000) {
echo (microtime() - $start)/1000 . " seconds elapsed<br/>";
sleep(500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment