in reply to a question on threads
use Time::Hires qw(time usleep); while(1) { my $now = time; my $next = int($now+1); usleep $next-$now; foo; bar; # your work here! }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: a question on threads
by Roy Johnson (Monsignor) on May 12, 2005 at 02:08 UTC | |
by thcsoft (Monk) on May 12, 2005 at 05:09 UTC |