in reply to Re: OT How fast a cpu to overwhelm Time::HiRes
in thread OT How fast a cpu to overwhelm Time::HiRes
So the answer to the OP is yes - you *can* get identical timestamps out of Time::HiRes with a sufficiently fast system.#!/usr/bin/perl use Time::HiRes qw(gettimeofday); my @timings = (0,0,0,0); #discard once @timings = (gettimeofday(), gettimeofday()); @timings = (gettimeofday(), gettimeofday()); print "$timings[0]$timings[1]\n"; print "$timings[2]$timings[3]\n"; __OUTPUT__ 1133364015468783 1133364015468783
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: OT How fast a cpu to overwhelm Time::HiRes
by snowhare (Friar) on Nov 30, 2005 at 16:18 UTC | |
|
Re^3: OT How fast a cpu to overwhelm Time::HiRes
by BrowserUk (Patriarch) on Nov 30, 2005 at 18:01 UTC | |
by snowhare (Friar) on Nov 30, 2005 at 22:35 UTC | |
by BrowserUk (Patriarch) on Dec 01, 2005 at 00:23 UTC | |
by tirwhan (Abbot) on Dec 01, 2005 at 00:54 UTC |