Sophie

Sophie

distrib > Momonga > 7 > x86_64 > media > updates > by-pkgid > 4616309230c6bc07cd185f6227799f7d

perl-Time-HiRes-1.9719-4m.mo7.x86_64.rpm

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.

Sources packages:

Other version of this rpm: