in reply to Create a loop of 1000ms at the exact second
That will depend on how you define 'exact', but on normal operating systems it's not possible to be all that precise.
The help from Time::HiRes says this :-
Remember that unless you are working on a hard realtime system, any cl +ocks and timers will be imprecise, especially so if you are working i +n a pre-emptive multiuser system. Understand the difference between w +allclock time and process time (in UNIX-like systems the sum of user +and system times). Any attempt to sleep for X seconds will most proba +bly end up sleeping more than that, but don't be surprised if you end + up sleeping slightly less.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Create a loop of 1000ms at the exact second
by gepebril69 (Scribe) on Feb 21, 2015 at 15:04 UTC | |
by locked_user sundialsvc4 (Abbot) on Feb 23, 2015 at 01:38 UTC |