in reply to OT How fast a cpu to overwhelm Time::HiRes
Some versions (of perl?) are buggy and return a low resultion value:
#!/usr/bin/perl use Time::HiRes qw(gettimeofday); for (1..10) { ($secs, $micro) = gettimeofday(); print "$secs.$micro\n"; }
outputs
1133364163.866375 1133364163.866375 1133364163.866375 1133364163.866375 1133364163.882000 1133364163.882000 1133364163.882000 1133364163.882000 1133364163.882000 1133364163.882000
on my ActivePerl 5.8.0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OT How fast a cpu to overwhelm Time::HiRes
by Anonymous Monk on Nov 30, 2005 at 15:32 UTC | |
by BrowserUk (Patriarch) on Nov 30, 2005 at 16:10 UTC | |
by eric256 (Parson) on Nov 30, 2005 at 16:03 UTC |