Skip to content

Instantly share code, notes, and snippets.

@paulv
Created June 20, 2012 13:56
Show Gist options
  • Save paulv/2960011 to your computer and use it in GitHub Desktop.
Save paulv/2960011 to your computer and use it in GitHub Desktop.
use Time::HiRes qw(time);
my $then = time();
my $pass = 0;
while (1) {
my $now = time();
if ($now < $then) {
die "$now < $then ($pass)\n";
}
$then = $now;
$pass++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment