From: Jarkko Hietaniemi Date: Wed, 16 May 2001 12:45:29 +0000 (+0000) Subject: Document that the core time() may be rounding rather X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f03b998d08e7c001de73bf7d09048e2e120c56df;p=p5sagit%2Fp5-mst-13.2.git Document that the core time() may be rounding rather than truncating, would have saved at least my confusion. p4raw-id: //depot/perl@10119 --- diff --git a/ext/Time/HiRes/HiRes.pm b/ext/Time/HiRes/HiRes.pm index 0f9d07b..0ff4798 100644 --- a/ext/Time/HiRes/HiRes.pm +++ b/ext/Time/HiRes/HiRes.pm @@ -262,6 +262,12 @@ Here is an example of using NVtime from C: myNVtime = (double(*)()) SvIV(*svp); printf("The current time is: %f\n", (*myNVtime)()); +=head1 CAVEATS + +Notice that the core time() maybe rounding rather than truncating. +What this means that the core time() may be giving time one second +later than gettimeofday(), also known as Time::HiRes::time(). + =head1 AUTHORS D. Wegscheid