Letter P

perl-Time-HiRes - High resolution alarm, sleep, gettimeofday, interval timers

Website: http://www.perl.org/
License: GPL+ or Artistic
Description:
The Time::HiRes module implements a Perl interface to the usleep, nanosleep,
ualarm, gettimeofday, and setitimer/getitimer system calls, in other words,
high resolution time and timers. See the "EXAMPLES" section below and the test
scripts for usage; see your system documentation for the description of the
underlying nanosleep or usleep, ualarm, gettimeofday, and setitimer/getitimer  calls.
If your system lacks gettimeofday() or an emulation of it you don't get gettimeofday()
or the one-argument form of tv_interval(). If your system lacks all of nanosleep(),
usleep(), select(), and poll, you don't get Time::HiRes::usleep(), Time::HiRes::nanosleep(),
or Time::HiRes::sleep(). If your system lacks both ualarm() and setitimer() you don't
get Time::HiRes::ualarm() or Time::HiRes::alarm().
If you try to import an unimplemented function in the use statement it will fail at compile time.
If your subsecond sleeping is implemented with nanosleep() instead of usleep(), you can
mix subsecond sleeping with signals since nanosleep() does not use signals. This, however,
is not portable, and you should first check for the truth value of &Time::HiRes::d_nanosleep
to see whether you have nanosleep, and then carefully read your nanosleep() C API documentation
for any peculiarities.
If you are using nanosleep for something else than mixing sleeping with signals, give some
thought to whether Perl is the tool you should be using for work requiring nanosecond accuracies.
Remember that unless you are working on a hard realtime system, any clocks and timers will be
imprecise, especially so if you are working in a pre-emptive multiuser system. Understand the
difference between wallclock time and process time (in UNIX-like systems the sum of user and
system times). Any attempt to sleep for X seconds will most probably end up sleeping more
than that, but don't be surpised if you end up sleeping slightly less.

Packages

perl-Time-HiRes-1.9726-5m.mo8.i686 [51 KiB] Changelog by Yohsuke Ooi (2016-08-05):
- (20:5.20.0-5m)
- add gcc5 patches

Listing created by Repoview-0.6.6-1m.mo8