X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FTime%2FHiRes%2FHiRes.pm;h=e52d7eef99fab2d9c70ab0c4ed290a6016c99099;hb=389199d8e578e8c2660c4fea3c0dd0bee7279ecb;hp=11848dbf27c1df1237e8a32ea09e3eab99cb01c3;hpb=3c72ec0095d5296c829ece3ce089509b7f8a14ab;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/Time/HiRes/HiRes.pm b/ext/Time/HiRes/HiRes.pm index 11848db..e52d7ee 100644 --- a/ext/Time/HiRes/HiRes.pm +++ b/ext/Time/HiRes/HiRes.pm @@ -12,7 +12,7 @@ use XSLoader; @EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval getitimer setitimer ITIMER_REAL ITIMER_VIRTUAL ITIMER_PROF); -$VERSION = '1.21'; +$VERSION = '1.20_00'; sub AUTOLOAD { my $constname; @@ -113,7 +113,9 @@ Time::HiRes::sleep() below. Issues a ualarm call; interval_useconds is optional and will be 0 if unspecified, resulting in alarm-like behaviour. -=item tv_interval ( $ref_to_gettimeofday [, $ref_to_later_gettimeofday] ) +=item tv_interval + +S Returns the floating seconds between the two times, which should have been returned by gettimeofday(). If the second argument is omitted, then the @@ -125,6 +127,19 @@ Returns a floating seconds since the epoch. This function can be imported, resulting in a nice drop-in replacement for the C