summaryrefslogtreecommitdiff
path: root/ext/Time/HiRes/HiRes.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-26 20:06:10 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-06-26 20:06:10 +0000
commit26e22fd982477a29dff41463848adbca7379d504 (patch)
treea1a124f5b372c3e0d1b0a01cc83db527fa01a298 /ext/Time/HiRes/HiRes.pm
parentbf3573334e260cec7a4095bce2ccbecb4bae4f96 (diff)
downloadperl-26e22fd982477a29dff41463848adbca7379d504.tar.gz
Upgrade to Time::HiRes 1.69
p4raw-id: //depot/perl@24985
Diffstat (limited to 'ext/Time/HiRes/HiRes.pm')
-rw-r--r--ext/Time/HiRes/HiRes.pm17
1 files changed, 15 insertions, 2 deletions
diff --git a/ext/Time/HiRes/HiRes.pm b/ext/Time/HiRes/HiRes.pm
index f1588302ea..a14dbb0255 100644
--- a/ext/Time/HiRes/HiRes.pm
+++ b/ext/Time/HiRes/HiRes.pm
@@ -7,6 +7,7 @@ require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
+@ISA = qw(Exporter);
@EXPORT = qw( );
@EXPORT_OK = qw (usleep sleep ualarm alarm gettimeofday time tv_interval
@@ -15,7 +16,7 @@ require DynaLoader;
d_usleep d_ualarm d_gettimeofday d_getitimer d_setitimer
d_nanosleep);
-$VERSION = '1.68';
+$VERSION = '1.69';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
@@ -32,7 +33,15 @@ sub AUTOLOAD {
goto &$AUTOLOAD;
}
-bootstrap Time::HiRes;
+eval {
+ require XSLoader;
+ XSLoader::load('Time::HiRes', $XS_VERSION);
+ 1;
+} or do {
+ require DynaLoader;
+ local @ISA = qw(DynaLoader);
+ bootstrap Time::HiRes $XS_VERSION;
+};
# Preloaded methods go here.
@@ -363,6 +372,10 @@ platforms like Cygwin and MinGW) the Time::HiRes::time() may temporarily
drift off from the system clock (and the original time()) by up to 0.5
seconds. Time::HiRes will notice this eventually and recalibrate.
+=head1 SEE ALSO
+
+L<BSD::Resource>, L<Time::TAI64>.
+
=head1 AUTHORS
D. Wegscheid <wegscd@whirlpool.com>