Make Time::HiRes::sleep() and usleep() to return
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 16 Oct 2001 01:55:48 +0000 (01:55 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 16 Oct 2001 01:55:48 +0000 (01:55 +0000)
commit52d72fba699bcf7fedd294a01c1a7481f6cfddd5
tree06d84bce1918d15e8bbf97edf37340d3490543fd
parent4dbdbdc23b025a4fce192822e1c7aa39e9238d55
Make Time::HiRes::sleep() and usleep() to return
the number of seconds (a floating point value) and
microseconds (an integer) actually slept (well,
modulo the time spent in measuring the time actually
slept...), to be a better drop-in replacement for
the builtin sleep().  Noticed by Chris Nandor.

Also make usleep() to croak if fed illegal number
of useconds (anything greater than 1_000_000).

p4raw-id: //depot/perl@12449
ext/Time/HiRes/HiRes.pm
ext/Time/HiRes/HiRes.t
ext/Time/HiRes/HiRes.xs