1 Revision history for the Perl extension Time::HiRes.
4 - correct declared minimum Perl version (should be 5.6, was declared
5 as 5.8 since 1.9727_03)
8 - prefer 3-argument open: blead 1ae6ead9
9 - fix dist/Time-HiRes/t/*.t that assumed '.' in @INC: blead 465db51d
10 - fix cases where 'do file' should be 'do ./file'.: blead 8b69401c
13 - C++11 compatibility: blead a914236c
14 - El Capitan compatibility: blead 45bbc013
15 - use CLOCK_REALTIME for clock_nanosleep scan: blead 56ed632c
16 - include file consistency in scans: blead 605b4dbe
17 - use clockid_t consistently: blead 2979fdf3
18 - use hv_fetchs(): blead 07e4dd7a
19 - scan for clockid_t (needed for macos Sierra): blead 69d1f2c2
20 - darwin lacks clockid_t: blead d1e7b5aa
22 - provide template for tempfile: blead 91dca83e
23 - explicit cast for clockid_t in C++11: blead 1c566547
24 - upgrade to a newer ppport (3.35)
27 - the ext3/ext2 filesystems do not have subsecond resolution,
28 therefore skip the t/utime.t test
32 - the upcoming macOS 10.12 (Sierra, the operating system formerly
33 known as OS X, or Darwin) has implemented the clock_gettime()
34 and clock_getres() interfaces but not the clock_nanosleep()
37 - fix the dates in the Changes, it's not July yet
39 - in cygwin, drop the utime.t expected timestamp resolution
40 - documented for utime that the actual timestamp resolution depends
41 on the operating system and the filesystem, just like for stat
42 - looks like in gnukfreebsd 10.1 neither futimens or utimensat work
43 even though they exist, skipping utime tests there for now
44 - demodernize the Test::More use in utime.t (no subtest) to
45 better support older Perl installations
46 - for all the tests, drop the Test::More 0.82 requirement,
47 the only "modern" thing used is the note routine which
48 can be replaced with print("# ...\n") (or printf),
49 with this works back at least with Test::More 0.54 (perl 5.8.7)
52 - utime in HiRes.xs had dXSARGS which was unnecessary, leading
53 to two markstack pops, panic, and two-minute wait for the watchdog
54 (thanks to Dave Mitchell for the eagle-eye)
55 - even though 5.10.x should have the Perl_ck_warner, many CPAN
56 smokes proved otherwise, so requiring now at least 5.12 for
57 Perl_ck_warner use in IS_SAFE_PATHNAME()
60 - the IS_SAFE_PATHNAME() emulation was too modern for Perl 5.10
61 - make it so that only one value is set for -DTIME_HIRES_STAT
62 even on systems that support many options
63 - the 1.9734 (only released in blead, and as part of the development
64 release 5.25.2) fix for Darwin's clock_gettime was wrong under
65 threaded builds, leading into mutex panics in clock.t
66 - the d_hires_utime determination was made more precise
67 - the utime.t was failing in platforms where only one of
68 futimens/utimensat was present (neither or both was okay)
71 - Time::HiRes should override `utime` to allow setting hires
72 (futimens and utimensat support)
74 - the utime patch used IS_SAFE_PATHNAME() which isn't available in
75 too old Perls, so emulate (in case the Devel::PPPort is too old)
78 - fix Darwins with clock_gettime: blead 2d41a263
82 - C90 declaration-after-statement error with darwin threads: blead de1003b4
86 - MUTEX_LOCK, not PERL_MUTEX_LOCK: blead e5b02b5d
87 - also hrt_ualarm_itimer() is unused: 1cb6cce3
88 - the mutex needs init: 2d639e20
89 - version bump to 1.9732: 730d7fdc
92 - mark unused variable as such: blead a914236c
93 - OS X emulation mutex accidentally unused: da7a6455
94 - remove hrt_ualarm: 6da77c36
95 - pod error fixes: 919ca095
96 - nanosleep and clock_nanosleep cleanups: c8ea02b8..e3ff671b
97 - static funcs in HiRes.xs: 4e922c26
98 - Remove unused variable: 52ffb1b5
101 - TIME_HIRES_DONT_RUN_PROBES=1 to build the probes but not run them
102 [rt.cpan.org #111391]
106 [rt.cpan.org #111170]
107 - clock_getres(), clock_gettime(), clock_nanosleep() emulation for OS X
111 - No changes since 1.9727_03
113 1.9727_03 [2015-11-06]
114 - use PERL_UNUSED_ARG() in the not-here-croak branches
115 - Makefile.PL/metadata improvements
117 1.9727_02 [2015-08-29]
118 - correct documentation to note that Time::NVtime is NV, not double
120 - avoid a warning about clock_t on OS X / clang 3.6 - 3.6
121 [rt.cpan.org #102718]
123 1.9727_01 [2015-08-17]
124 - Remove usage of 5.005 thread APIs in favor of 5.6 and up thread APIs
125 [rt.cpan.org #102799].
126 - Silence a C++ compiler warning [rt.cpan.org #101497].
127 - respect $Config{run} for cross-compiling [rt.cpan.org #92607]
130 - Correct s/us splitting of usleep(1000000) [rt.cpan.org #78266].
131 - Avoid integer overflow in itimer-based alarm() with large
132 argument [rt.cpan.org #87160].
133 - Define PERL_NO_INLINE_FUNCTIONS during probe compilations, to
134 avoid false negatives caused by not linking with the perl core.
135 - Be more careful about context in stat().
136 - Install into "site" directories by default on perl 5.11+
137 [rt.cpan.org #79797].
138 - Fix a couple of doc typos [rt.cpan.org #85365].
139 - Fix function name in a doc example [rt.cpan.org #86318].
140 - Provide lstat() that yields high-res timestamps, alongside
141 the existing high-res stat() [rt.cpan.org #78732].
144 - Correct stack discipline in stat(), which was screwing up list
145 operations in expressions containing calls to it [rt.cpan.org
147 - Add missing OUTPUT sections to the XS code [rt.cpan.org #70930].
148 - Skip itimer tests on GNU/Hurd, which has the API but lacks
149 the implementation [rt.cpan.org #72754].
150 - Fix a doubled word in the documentation [rt.cpan.org #72763].
153 - Correct XS parameter list, and therefore prototype, for
154 unimplemented-on-this-platform version of clock_nanosleep()
155 [rt.cpan.org #68700].
156 - Declare package variables with "our" rather than "use vars".
157 - Corresponding to "our" usage, check for minimum Perl version
159 - Declare module dependencies.
162 - Remove $ENV{PERL_CORE} logic from test suite, which is no
163 longer desired in the core.
164 - Convert test suite to use Test::More.
165 - Factor out watchdog code from test suite.
166 - In test suite, be consistent about using fully-qualified form
168 - Divide test suite into feature-specific scripts.
169 - Make ualarm timing test less vulnerable to delay-induced false
170 failure, from Dave Mitchell.
173 - Update for changes in build process in the core, patches
174 from BinGOs [rt.cpan.org #58858] and Craig Berry [rt.cpan.org
176 - Fix broken linkage on Windows with gcc 3.4 seen with ActivePerl,
177 report from Christian Walde [rt.cpan.org #61648], fix derived
179 - Jump through hoops to avoid compiler warnings.
182 - Address [rt.cpan.org #54196] alarm and ularm return values are bogus,
183 additional fix from Gisle Aas
184 - Address [rt.cpan.org #55665] "Bad plan" on Windows,
185 report and fix from Jan Dubois
188 - Address [rt.cpan.org #54196] alarm and ularm return values are bogus,
189 report and fix from Nicholas Clark
192 - As with QNX, Haiku has the API of interval timers but not
193 the implementation (bleadperl change #34630), hence skip
194 the tests, via David Mitchell.
197 - .xs code cleanup from Albert Dvornik
198 - in the #39 and #40 do not do us I did, mixing alarm() and
199 sleep(). Now instead spin until enough time has passed.
202 - Skip the tests added in 1.9716 (#39, #40) if there's no subsecond
203 alarm capability, like with the older subsecond alarm tests
206 - Change documentation to agree with reality: there are
207 no interval timers in Win32.
208 - Address [rt.cpan.org #35899] (problem in subsecond sleeps),
209 add two tests to guard against this problem
210 - Address [rt.cpan.org #36600] 'Division by zero' failure in test suite
211 - Address [rt.cpan.org #37340] [PATCH] Address timer process in test
212 - Address [rt.cpan.org#40311 ] bad implementation of hrt_usleep
213 with TIME_HIRES_NANOSLEEP
216 - Silly me: Makefile.PL does need to accept arguments other than mine.
217 Some testing frameworks obviously do this.
218 - Add retrying for tests 34..37, which are the most commonly
219 failing tests. If this helps, consider extending the retry
220 framework to all the tests. [Inspired by Slaven Rezic,
221 [rt.cpan.org #34711] Occasional failures of test 35 or 36 (FreeBSD)]
224 - Under Perl 5.6.* NVgf needs to be "g", reported by Zefram,
225 it seems that ppport.h 3.13 gets this wrong.
226 - remove the check in Makefile.PL for 5.7.2, shouldn't be
227 (a) necessary (b) relevant
228 - add logic to Makefile.PL to skip configure/write Makefile
229 step if the "xdefine" file already exists, indicating that
230 the configure step has already been done, one can still
231 force (re)configure by "perl Makefile.PL configure",
232 or of course by "make clean && perl Makefile.PL".
235 - for alarm() and ualarm() [Perl] prefer setitimer() [C]
236 instead of ualarm() [C] since ualarm() [C] cannot portably
237 (and standards-compliantly) be used for more than 999_999
238 microseconds (rt.cpan.org #34655)
239 - it seems that HP-UX has started (at least in 11.31 ia64)
240 #defining the CLOCK_REALTIME et alia (instead of having
242 - document all the diagnostics
245 - move the sub tick in the test file back to where it used to be
246 - in the "consider upgrading" message recommend at least Perl 5.8.8
247 and make the message to appear only for 5.8.0 since 5.8.1 and
248 later have the problem fixed
249 - VOS tweak for Makefile (core perl change #33259)
250 - since the test #17 seems to fail often, relax its limits a bit
253 - lost VMS test skippage from Craig Berry
254 - reformat the test code a little
257 - I got the sense of the QNX test the wrong way in an attempt
258 to generalize it for future
261 - casting fixes from Robin Barker for g++ and 64bitint
262 - in QNX skip the itimer tests because though the API
263 is there, the implementation isn't, from Matt Kraai
264 - raise the dead man timer to 180 seconds for really
266 - elaborate the UTF-8 locale warning from Makefile.PL
269 - [rt.cpan.org #29747]: Build failure with perl 5.005_05
270 Fixed by regenerating the ppport.h using Devel::PPPort 3.13.
273 - t/HiRes.t failed in Perl 5.6.2,
274 "action is not of type POSIX::SigAction at t/HiRes.t line 318",
275 reported and fixed by Anton Berezin, the reason was faulty
276 use of sigaction() when restoring the old action.
279 - with bleadperl in VMS the HiRes.t overrun the maximum number
280 of deferred signals because the libc SIGALRM was not strong
281 enough to interrupt select(), and select() got restarted every
282 time, solution is to use POSIX::SigAction if available.
283 A fix from Craig Berry (not 100% there, but helps).
284 - allow for more measuring noise for ualarm() tests 35..37
287 - nanosleep() and clock_nanosleep() detection and use were
288 quite broken; in Linux -lrt needed; fixes from Zefram
289 - [internal] slightly cleaner building of $DEFINE in Makefile.PL,
290 should avoid double/conflicting -D flags
293 - allow 10% of slop in test #14 (testing difference between
294 CORE::time() and Time::HiRes::time()), there seem to be often
295 transient failures from Perl smoke builds on this test
299 - use int main(int argc, char **argv) consistently in Makefile.PL,
301 [rt.cpan.org #23868] nanosleep not detected under Mac OS 10.3.9 starting with Time::HiRes 1.96
302 - if someone still has the locale-broken Perl 5.8.0,
303 suggest that they upgrade their Perl
306 - restore the -DATLEASTFIVEOHOHFIVE, Win32 needed it still
309 - upgrade to ppport.h 3.10_02
310 - remove the -DATLEASTFIVEOHOHFIVE
311 - use the ppport.h PL_ppaddr, PL_statcache, PL_laststatval
312 - use the ppport.h aTHXR for calling Perl stat()
313 - switch into four-digit version since 2.0 is coming up
314 awfully fast but not feeling like a major rewrite
317 - 1.95 broke building in Win32 (since pp_stat is not exported),
318 figured out how to call an op directly in 5.005 (use Perl_ppaddr
319 instead of PL_ppaddr)
320 - backport to Perl 5.004_05 (requires using statcache
321 and laststatval instead of PL_statcache and PL_laststatval)
322 (also checked to work in 5.005_04, 5.6.1, and 5.8.8 with threads)
325 - 1.95 broke builds for threaded Perls, rt.cpan.org tickets:
326 [rt.cpan.org #23694] Time::HiRes fails tests on Solaris and Perl 5.6.1
327 [rt.cpan.org #23712] Time-HiRes 1.95 Fails make on AIX 5.2 with Perl 5.8.8
328 [rt.cpan.org #23730] Time::HiRes 1.95 fails make on MacOS X 10.3.9/perl 5.8.8
329 - use main() prototype consistently in Makefile.PL
332 - integrate core change #29180: Silence VC++ compiler warnings
334 - do not use PL_ppaddr in stat() because that is not available
336 - regenerate fallback/*.inc for older Perls without
337 ExtUtils::Constant because of d_hires_stat, resolves
338 [rt.cpan.org #23694] Time::HiRes fails tests on Solaris and Perl 5.6.1
339 - Make Makefile.PL more defensive against false PERL_CORE
342 - file timestamps oddities seen: the atime and mtime
343 can be out of sync (modify first and read second can leave
344 atime < mtime) and mtime can be subsecond while atime is not.
345 So make the test more forgiving.
348 - the ualarm() tests (34-37) assumed that ualarm(N)
349 could never alarm in less than N seconds, widened
350 the acceptable relative range to 0.9..1.5. Addresses
351 [rt.cpan.org #22090] and [rt.cpan.org #22091].
353 - skip the stat() tests in cygwin and win32, because
354 if run on FAT the timestamp granularity is only 2 seconds.
355 Any good way to detect (cygwin or win32) whether we are
356 being run on NTFS or anywhere with better timestamps?
357 Addresses [rt.cpan.org #22089] and [rt.cpan.org #22098].
360 - scan for subsecond resolution timestamps in struct stat,
361 some known possibilities:
363 (1) struct timespec st_atimespec;
364 st_atimespec.tv_nsec;
369 (4) timestruc_t st_atim;
374 If something like this is found, one can do
377 my @stat = Time::HiRes::stat();
379 or even override the standard stat():
381 use Time::HiRes qw(stat);
383 to get the stat() timestamps
385 my ($atime, $mtime, $ctime) = @stat[8, 9, 10];
387 with subsecond resolution (assuming both the operating
388 system and the filesystem support that kind of thing).
390 Contributions for more systems (especially non-UNIX,
391 e.g. but not limited to: Win32, VMS, OS/2) gladly accepted.
392 (also more UNIX variants welcome: HP-UX? IRIX?)
394 Thanks to H.Merijn Brand, John Peacock, and Craig
395 Berry for brave beta testing.
398 - ualarm() in SuSE 10.1 was overflowing after ~4.2 seconds,
399 possibly due to a glibc bug/feature (suspected overflow at
400 2**32 microseconds?), workaround by using the setitimer()
401 implementation of ualarm() if either useconds or
402 interval > 999_999 (this case seems to vary between systems:
403 are useconds more than 999_999 for ualarm() defined or not)
404 Added more ualarm() tests to catch various overflow points,
405 hopefully no problems in various platforms.
406 (The problem report by Mark Seger and Jon Paul Sullivan of HP.)
409 - tweak still needed for Const64(), from Jerry Hedden
410 - get a freshly generated ppport.h
411 - update Copyright years
414 - Const64() already appends an 'LL' (or i64), so provide LL and i64
415 forms for the IV_1E[679] (effects Win32 and Cygwin), reported by
417 - the Changes entry for 1.88 talked about [IN]V_1[679],
421 - clean up the g++ warnings in HiRes.xs, all of them
422 about mixing integer and floating point, introduce
423 constants IV_1E[679] and NV_1E[679]
426 - [rt.cpan.org #17442] 'make test' frequently fails under
427 Cygwin Perl v5.8.8, reported and patched by J. R. Hedden
428 (two race condition bugs in the END block in the case the
429 main process dies before the timer process, unearthed
430 by a bug in Cygwin ualarm)
433 - HiRes.t:s/ok 32/ok 33/, from Dominic Dunlop
434 - tighten up the clock() test marginally by requiring non-negative
435 - clock_nanosleep() and clock() doc tweaks
438 - the interface to clock_nanosleep() is more natural
439 when it is like (hires) time() (instead of like nanosleep),
440 and the .xs implementation of clock_nanosleep() in 1.84
442 - the semantics of clock() are not quite so silly as I thought,
443 but still somewhat odd, documented as such
444 - additional enhancements to the clock() documentation
445 - add test for clock_nanosleep() (I cannot test this
446 since none of my systems have the function)
447 - add test for clock()
450 - add clock() which returns the processor time in
451 (floating point) seconds since an arbitrary era
452 - add clock_nanosleep() which suspends the current
453 thread until either absolute time or for relative time
454 - [rt.cpan.org #16486] printf missing value in HiRes.t
455 - add constants CLOCKS_PER_SEC, CLOCK_SOFTTIME, TIMER_ABSTIME
459 - has_symbol() was wrong since e.g. ITIMER_VIRTUAL is exported
460 via @EXPORT_OK even when it is not available. This is heinous.
461 @EXPORT_OK should be determined at Makefile.PL time.
462 - be more lenient is testing clock_gettime(): allow more slop,
463 and retry up to three times, sleeping a random nap between
465 - human months are one-based (noticed by Anton Berezin)
468 - CLOCK_REALTIME is an enum value (of the clockid_t enum)
469 in HP-UX (and might be so elsewhere, too), debugged by
471 - include const-c.inc as late as possible (from Randy Kobes,
472 [rt.cpan.org #15552] to avoid undefined usleep() on Win32
475 - try to be more robust and consistent in the detection of
476 CLOCK_REALTIME and ITIMER_VIRTUAL in HiRes.t: the proper
481 eval 'import Time::HiRes qw($symbol)';
482 return 0 unless $@ eq '';
483 return exists ${"Time::HiRes::$symbol"};
490 in the test. All these moves are needed because
492 1) one cannot directly do eval 'Time::HiRes::FOO_BAR'
493 because FOO_BAR might have a true value of zero
494 (or in the general case an empty string or even undef)
496 2) In case FOO_BAR is not available in this platform,
497 &FOO_BAR avoids the bareword warning
499 - wait more (1.5 seconds instead of 0.1) for the CLOCK_REALTIME test
500 but expect the 'customary' slop of 0.20 instead of 0.25
501 - fixed inside a comment HAS_POLL -> TIME_HIRES_NANOSLEEP
502 - at the end of HiRest.t tell how close we were to termination
505 - Gisle noticed a mistake (using HAS_NANOSLEEP) in 1.79
508 - try nanosleep for emulating usleep -- may help in some weird
509 embedded realtime places which have nanosleep but neither usleep
510 nor select nor poll (doesn't have to be weird embedded realtime
511 place, though -- in many places usleep is nanosleep anyway)
512 - try poll for emulating usleep -- this may help some obscure/old
513 SVR4 places that have neither usleep nor select
514 - a redundant test guard in HiRes.t
517 - ITIMER_VIRTUAL detection in HiRes.t had problems (that we cannot
518 in the general case fail already at 'use' phase is suboptimal)
519 - fixes to the documentation of clock_gettime() and clock_getres()
522 - add support for the POSIX clock_gettime() and clock_getres(),
523 if available, either as library calls or as syscalls
524 - be more defensive about missing functionality: break out
525 early (during 'use') if no e.g. clock_getres() is available,
526 and protect our back by trapping those cases also in HiRes.xs
527 - the test added in 1.76 could cause an endless loop e.g. in Solaris,
528 due to mixing of sleep() and alarm() (bad programmer, no cookie!)
531 - testing for nanosleep had wrong logic which caused nanosleep
532 to become undefined for e.g. Mac OS X
533 - added a test for a core dump that was introduced by Perl 5.8.0
534 safe signals and was fixed for the time of 5.8.1 (one report of
535 the core dump was [perl #20920]), the test skipped pre-5.8.1.
536 - *cough* s/unanosleep/nanosleep/g; *cough*
539 - installation patch from Gisle Aas: in Perls 5.8.x and later
540 use MakeMaker INSTALLDIRS value of 'perl' instead of 'site'.
543 - [cpan #14608] Solaris 8 perl 5.005_03 File::Spec module does not have method rel2abs
544 (the workaround is not to use rel2abs, should not be necessary)
545 - [cpan #14642] U2time wrongly exported on the C API
546 (patch supplied by the reporter, SALVA@cpan.org)
547 - add release dates to Changes
550 - Time::HiRes::nanosleep support for Solaris [PATCH]
551 (POSIX::uname() not available if building with core perl,
552 from Gisle Aas, via perl5-porters, perl change #25295)
555 - going back to the 1.68 loader setup (using DynaLoader)
556 since too many weird things starting breaking
557 - fix a typo in José Auguste-Etienne's name
560 - a thinko in the nanosleep() detection
561 - move more changes stuff from the README to Changes
562 - add -w to the Makefile.PL
565 - oops in 1.69 about @ISA (not affecting anything but silly)
566 - add copyright 2005 to HiRes.pm
567 - add copyright and license to HiRes.xs
568 - add copyrights 2003, 2004, 2005 to README
571 - actually run a test for nanosleep
572 (if there is no $Config{d_nanosleep}) since e.g. in AIX 4.2
573 it seems that one can link in nanosleep() but then calling
574 it fails instantly and sets errno to ENOSYS (Not implemented).
575 This may be fixable in the AIX case by figuring out the right
576 (realtime POSIX?) libs and whatnot, but in the general case
577 running a real test case is better. (Of course, this change
578 will no doubt run into portability problems because of the
579 execution step...) Note that because of hysterical raisins
580 most Perls do NOT have $Config{d_nanosleep} (scanning for
581 it by Configure would in many platforms require linking in
582 things like -lrt, which would in many platforms be a bad idea
584 (from José Auguste-Etienne)
585 - support XSLoader also since it's much faster
586 (from Alexey Tourbin)
587 - add SEE ALSO (BSD::Resource and Time::TAI64)
590 - somehow 1.67 had a lot of doubled lines (a major cut-and-paste
591 error suspected), but miraculously it still worked since the
592 doubling took place below the __END__ token
593 - undef Pause() before defining it to avoid redefinition warnings
594 during compilation in case perl.h had already defined Pause()
595 (part of perl change #24271)
599 - (internal) don't ignore the return value of gettimeofday()
600 - (external) return undef or an empty if the C gettimeofday() fails
601 (affects Time::HiRes gettimeofday() and the hires time())
605 - fix the 'hierachy' typo in Makefile.PL [rt.cpan.org #8492]
606 - should now build in Solaris [rt.cpan.org #7165] (since 1.64)
607 - should now build in Cygwin [rt.cpan.org #7535] (since 1.64)
608 - close also [rt.cpan.org #5933] "Time::HiRes::time does not
609 pick up time adjustments like ntp" since ever reproducing it
610 (and therefore verifying a possible fix) in the same environment
611 has become rather unlikely
614 - one should not mix u?alarm and sleep (the tests modified
615 by 1.65, #12 and #13, hung in Solaris), now we just busy
616 loop executing an empty block
617 - in the documentation underline the unspecificity of mixing
619 - small spelling fixes
622 - regenerate ppport.h with Devel::PPPort 3.03,
623 now the MY_CXT_CLONE is defined in ppport.h,
624 we no more need to do that.
626 - the test #12 would often hang in sigsuspend() (at least that's
627 where Mac OS X' ktrace shows it hanging). With the sleep()s
628 changed to sleep(1)s, the tests still pass but no hang after
629 a few hundred repeats.
632 - Win32 and any ithread build: ppport.h didn't define
633 MY_CXT_CLONE, which seems to be a Time-HiRes-ism.
636 - Skip testing if under PERL_CORE and Time::HiRes has not
637 been Configured (from Marcus Holland-Moritz, core change
639 - Use ppport.h generated by Devel::PPPort 3.01,
640 allowing cutting away our own portability code.
641 - Don't use $ENV{PERL_CORE} for < 5.6.0.
642 - Don't use "for my $i" for <= 5.003.
643 - Don't use Pause() for <= 5.003.
644 - Can't use newSVpvf for <= 5.003.
645 (most of the changes from Marcus)
648 - Win32: reset reading from the performance counters every
649 five minutes to better track wall clock time (thanks to
650 PC timers being often quite bad), should help long-running
654 - Win32: Patch from Steve Hay
655 [PATCH] Re: [perl #30755] [Win32] Different results from Time::HiRes::gettimeofdayunder the debugger
656 to [perl #30755] reported by Nigel Sandever
658 - Cygwin: Use the Win32 recalibration code also in Cygwin if the
659 <w32api/windows.h> APIs are available. Cygwin testing by
660 Yitzchak Scott-Thoennes.
662 - Solaris: use -lposix4 to get nanosleep for Solaris 2.6,
663 after that keep using -lrt, patch from Alan Burlison,
664 bug reported in [cpan #7165]
667 - Change the Win32 recalibration limit to 0.5 seconds and tweak
668 the documentation to blather less about the gory details of the
669 Win32 implementation and more about the complications in general
670 of meddling with the system clock.
673 - Document the 1.57 change better.
676 - Win32/Cygwin/MinGW: if the performance counter drifts by more
677 than two seconds from the system clock (due to ntp adjustments,
678 for example), recalibrate our internal counter: from Jan Dubois,
679 based on [cpan #5933] by Jerry D. Hedden.
682 - Give a clearer message if the tests timeout (perl change #22253)
683 - Don't use /tmp or its moral equivalents (perl bug #15036,
687 - Windows: mingw32 patch from Mike Pomraning (use Perl's Const64()
688 instead of VC-specific i64 suffix)
691 - Solaris: like Tru64 (dec_osf) also Solaris need -lrt for nanosleep
694 - Windows: higher resolution time() by using the Windows
695 performance counter API, from Jan Dubois and Anton Shcherbinin.
696 The exact new higher resolution depends on the hardware,
697 but it should be quite a bit better than using the basic
701 - In AIX (v?) with perl 5.6.1 the HiRes.t can hang after
702 the subtest 18. No known analysis nor fix, but added
703 an alarm (that requires fork() and alarm()) to the test.
706 - doc tweaks from mjd (perl change #20456)
707 - NCR MP-RAS hints file added (svr4.pl) (perl change #21249)
710 - add a message (for non-core builds) to Makefile.PL about
711 the LC_ALL=C workaround
712 - &Time::HiRes::d_nanosleep was broken (perl change #20131)
713 - the nanosleep() probe was broken (perl change #20061)
714 - use existence instead of definedness for feature probes
716 - MPE/iX tweak (perl change #20042)
717 - do not use HAS_NANOSLEEP (perl change #19898)
720 - UVuf for non-IVSIZE platforms (from Keiichiro Nagano)
721 - OS/2 can always mix subsecond sleeps with signals
722 (part of perl change #19789)
725 - workaround for buggy gcc 2.95.3 in openbsd/sparc64
729 - do not use -lrt in Linux (from March Lehmann, perl change #19449)
730 - unnecessary (nanosleep is in libc anyway)
731 - harmful (-lrt slows down execution)
732 - incompatible (with many distributions' pthreads)
735 - do not create files in blib directories under core
736 (perl change #19160, from rgs)
737 - detypo s/VTLARM/VTARLM/ (perl change #19328, from mjd)
740 - guarantee that $xdefine in HiRes.t is always defined
741 (perl change #19109, from IlyaZ)
742 - a cleaner way to detect PERL_CORE (perl change #19111,
746 - add hints/irix.pl to turn off overly POSIX flags that
747 cause hide struct timespec to be hidden (and compilation
748 to fail) (bleadperl change #19085)
749 - documentation tweaks
752 - add c:/temp to the list of temp directories to probe
753 so that cygwin (and win*?) builds are happy. This was
754 needed at least in my cygwin 1.3.20/w2k setup.
757 - modernize the constants code (from Nicholas Clark)
760 - At some point the ability to figure our the correct incdir
761 for EXTERN.h (either a core perl build, or an installed perl)
762 had broken (which lead into all test compiles failing with
763 a core perl build, but thanks to the robustness of Makefile.PL
764 nothing of this was visible). The brokenness seemed to be
765 caused by $ENV{PERL_CORE} not being on for core builds?
766 Now stole a trick from the Encode that sets $ENV{PERL_CORE}
767 right, and both styles of build should work again.
770 - Nicholas Clark noticed that the my_catdir() emulation function
771 was broken (which means that we didn't really work for Perls
773 - inspired by fixing the above made the whole Makefile.PL -w
775 - tightened up the Makefile.PL output, less whitespace
778 - fix from Craig Berry for better building in VMS with PERL_CORE
781 - no functional changes
782 - move lib/Time/HiRes.pm as Hires.pm
783 - libraries scanning was slightly broken (always scanned
784 for a library even when $Config{libs} already had it)
787 - Ray Zimmerman ran into a race condition in Mac OS X.
788 A 0.01-second alarm fired before the test expected.
789 The test first slept indefinitely (blocking for signals)
790 and only after that tested for the signal having been sent.
791 Since the signal had already been sent, the test #12 never
792 completed. The solution: test first, then block.
793 - default to being silent on all probing attempts, set the
794 environment variable VERBOSE to a true value to see the
795 details (the probing command and the possible errors)
798 - do not clear MAN3PODS in Makefile.PL (Radoslaw Zielinski)
799 - INSTALLDIRS => 'perl' missing which means that Time::HiRes
800 cannot be upgraded from CPAN to override the 5.8.0 version
802 - Time::HiRes 1.35 could not be dropped as-is to bleadperl
803 because the include directories did not adjust themselves
804 if $ENV{PERL_CORE} (Hugo van der Sanden)
805 - add documentation about the restart of select() under alarm()
808 - small documentation tweaks
812 - better VMS operation (Craig Berry)
815 - our time machine is accelerating: now works with Perl 5.004_01
816 (tried with 5.003_07 and 5.002 but I get segmentation faults
817 from running the Makefile.PL with those in Tru64 4.0D)
820 - backward compatibility (pre-5.6.0) tweaks:
821 - no XSLoader in 5.00503, use DynaLoader instead
822 - no SvPV_nolen, either
823 - no PerlProc_pause(), either
824 - now tested with 5.00404 and 5.00503
825 - Makefile.PL requires 5.00404 (no more 5.002)
826 - use nanosleep instead of usleep, if it is available (Wilson Snyder)
827 (this means that one can mix subsecond sleeps with alarms)
828 - because of nanosleep we probe for -lrt and -lposix4
829 - the existence of getitimer/nanosleep/setitimer/ualarm/usleep
830 is available by exportable constants Time::HiRes::d_func
831 (since older Perl do not have them in %Config, and even
832 5.8.0 does not probe for nanosleep)
835 - backward compatibility (pre-5.6.1) tweaks:
836 - define NV if no NVTYPE
837 - define IVdf if needed (note: the Devel::PPPort
838 in 5.8.0 does not try hard hard enough since
839 the IVSIZE might not be defined)
840 - define NVgf if needed
841 - grab the typemap from 5.8.0 for the NV stuff
843 1.31 and 1.32 add more backward compatibility (now all the way
844 back to Perl 5.00404), and using nanosleep() (if available) for
849 - release 1.29_02 as 1.30
851 1.30 adds all the changes made during the Perl 5.6->5.7->5.8
852 development cycle. Most notably portability across platforms has been
853 enhanced, and the interval timers (setitimer, getitimer) have been
854 added. Note that the version of Time::HiRes that is included in Perl
855 5.8.0 calls itself 1.20_00, but it is equivalent to this Time::HiRes
856 version. Note also that in 1.30 Wegscheid turns over the maintenance
857 to Jarkko Hietaniemi.
861 - fix a silly unclosed comment typo in HiRes.xs
862 - document and export REALTIME_REALPROF (Solaris)
866 - only getitimer(ITIMER_REAL) available in Cygwin and Win32
867 (need to patch this also in Perl 5.[89])
868 - remove CVS revision log from HiRes.xs
872 The following numbered patches refer to the Perl 5.7 changes,
873 you can browse them at http://public.activestate.com/cgi-bin/perlbrowse
875 - 17558: Add #!./perl to the .t
876 - 17201: linux + usemorebits fix, from Rafael Garcia-Suarez
877 - 16198: political correctness, from Simon Cozens
878 - 15857: doc tweaks, from Jarkko Hietaniemi
879 - 15593: optimization in .xs, from Paul Green
880 - 14892: pod fixes, from Robin Barker
881 - 14100: VOS fixes, from Paul Green
882 - 13422: XS segfault, from Marc Lehmann
883 - 13378: whether select() gets restarted on signals, depends
884 - 13354: timing constraints, again, from Andy Dougherty
885 - 13278: can't do subsecond alarms with ualarm;
886 break out early if alarms do not seem to be working
887 - 13266: test relaxation (cygwin gets lower hires
888 times than lores ones)
889 - 12846: protect against high load, from Jarkko Hietaniemi
890 - 12837: HiRes.t VMS tweak, from Craig A. Berry
891 - 12797: HiRes.t VMS tweak, from Charles Lane
892 - 12769: HiRes.t VMS tweak, from Craig A. Berry
893 - 12744: gcc vs MS 64-bit constant syntax, from Nick Ing-Simmons
894 - 12722: VMS ualarm for VMS without ualarm, from Charles Lane
895 - 12692: alarm() ain't gonna work if ualarm() ain't,
896 from Gurusamy Sarathy
897 - 12680: minor VMS tweak, from Charles Lane
898 - 12617: don't try to print ints as IVs, from Jarkko Hietaniemi
899 - 12609: croak on negative time, from Jarkko Hietaniemi
900 - 12595: Cygwin rounds up for time(), from Jarkko Hietaniemi
901 - 12594: MacOS Classic timeofday, from Chris Nandor
902 - 12473: allow for more than one second for sleep() and usleep()
903 - 12458: test tuning, relax timing constraints,
904 from Jarkko Hietaniemi
905 - 12449: make sleep() and usleep() to return the number
906 of seconds and microseconds actually slept (analogously
907 with the builtin sleep()), also make usleep() croak if
908 asked for more than 1_000_000 useconds, from Jarkko Hietaniemi
909 - 12366: Time::HiRes for VMS pre-7.0, from Charles Lane
910 - 12199: do not use ftime on Win32, from Gurusamy Sarathy
911 - 12196: use ftime() on Win32, from Artur Bergman
912 - 12184: fix Time::HiRes gettimeofday() on Win32, from Gurusamy Sarathy
913 - 12105: use GetSystemTime() on Win32, from Artur Bergman
914 - 12060: explain the 1e9 seconds problem, from Jarkko Hietaniemi
915 - 11901: UNICOS sloppy division, from Jarkko Hietaniemi
916 - 11797: problem in HiRes.t, from John P. Linderman
917 - 11414: prototype from Time::HiRes::sleep(), from Abhijit Menon-Sen
918 - 11409: Time::HiRes qw(sleep) failed, from Abhijit Menon-Sen
919 - 11270: dynix/ptx 4.5.2 hints fix, from Peter Prymmer
920 - 11032: VAX VMS s/div/lib\$ediv/ fix, from Peter Prymmer
921 - 11011: VAX VMS s/qdiv/div/ fix, from Peter Prymmer
922 - 10953: SCO OpenServer 5.0.5 requires an explicit -lc for usleep(),
924 - 10942: MPE/IX test tweaks, from Mark Bixby
925 - 10784: unnecessary pod2man calls, from Andy Dougherty
926 - 10354: ext/ + -Wall, from Doug MacEachern
927 - 10320: fix the BOOT section to call myU2time correctly
928 - 10317: correct casting for AIX< from H. Merijn Brand
929 - 10119: document that the core time() may be rounding, not truncating
930 - 10118: test fix, from John Peacock
931 - 9988: long =item, from Robin Barker
932 - 9714: correct test output
933 - 9708: test also the scalar aspect of getitimer()
934 - 9705: Add interval timers (setitimer, getitimer)
935 - 9692: do not require at least 5.005 using XS
937 The following changes were made on top of the changes
938 made for Time::HiRes during the Perl 5.7 development
939 cycle that culminated in the release of Perl 5.8.0.
941 - add "require 5.005" to the Makefile.PL
942 - remove the REVISION section (CVS log) from HiRes.pm
943 - add jhi's copyright alongside Douglas'
944 - move HiRes.pm to lib/Time/
946 - modify HiRes.t to use $ENV{PERL_CORE}
947 - modify the original Time::HiRes version 1.20 Makefile.PL
948 to work both with Perl 5.8.0 and the new code with pre-5.8.0
949 Perls (tried with 5.6.1)
950 - tiny tweaks and updates in README and TODO
951 - bump the VERSION to 1.29
953 1.20 Wed Feb 24 21:30 1999
954 - make our usleep and ualarm substitutes into hrt_usleep
955 and hrt_ualarm. This helps static links of Perl with other
956 packages that also have usleep, etc. From
957 Ilya Zakharevich <ilya@math.ohio-state.edu>
958 - add C API stuff. From Joshua Pritikin
959 <joshua.pritikin@db.com>
960 - VMS Makefile.PL fun. From pvhp@forte.com (Peter Prymmer)
961 - hopefully correct "-lc" fix for SCO.
964 1.20 adds a platform neutral set of C accessible routines if you are
965 running 5.005+. All other changes are packaging changes and build
966 fixes(?) for statically linked Perl, SCO, and VMS.
968 1.19 Tue Sep 29 22:30 1998
969 - put VMS gettimeofday() in. Patch is from Sebastian Bazley
970 <seb@stian.demon.co.uk>
971 - change GIMME_V to GIMME to help people with older versions of
973 - fix Win32 version of gettimeofday(). It didn't affect anything,
974 but it confuses people reading the code when the return value
975 is backwards (0 is success).
976 - fix Makefile.PL (more) so that detection of gettimeofday is
979 1.19 has better VMS support.
981 1.18 Mon Jul 6 22:40 1998
982 - add usleep() for Win32.
983 - fix Makefile.PL to fix reported HP/UX feature where unresolved
984 externals still cause an executable to be generated (though no
985 x bit set). Thanks to David Kozinn for report and explanation.
986 Problems with the fix are mine :)
988 1.18 has limited Win32 support (no ualarm). Added usleep for Win32.
989 Probably buggy. I'm sure I'll hear.
991 1.17 Wed Jul 1 20:10 1998
992 - fix setitimer calls so microseconds is not more than 1000000.
993 Hp/UX 9 doesn't like that. Provided by Roland B Robert, PhD.
994 - make Win32. We only get gettimeofday (the select hack doesn't
995 seem to work on my Win95 system).
996 - fix test 4 on 01test.t. add test to see if time() and
997 Time::HiRes::time() are close.
999 1.16 Wed Nov 12 21:05 1997
1000 - add missing EXTEND in new gettimeofday scalar code.
1002 1.16+ should be closer to building out of the box on Linux. Thanks
1003 to Gisle Aas for patches, and the ualarm equivalent using setitimer.
1005 If your underlying operating system doesn't implement ualarm(), then
1006 a fake using setitimer() will be made. If the OS is missing usleep(),
1007 a fake one using select() will be made. If a fake can't be made for
1008 either ualarm() or usleep(), then the corresponding Perl function will
1009 not be available. If the OS is missing gettimeofday(), you will get
1010 unresolved externals, either at link- or run-time.
1012 This is an improvement; the package used to not even build if
1013 you were missing any of these bits. Roderick Schertler
1015 <roderick@argon.org> did all the conditional compilation stuff,
1016 look at HiRes.pm and the test suites; it's good educational reading.
1018 1.15 Mon Nov 10 21:30 1997
1019 - HiRes.pm: update pod. Provided by Gisle Aas.
1020 - HiRes.xs: if gettimeofday() called in scalar context, do
1021 something more useful than before. Provided by Gisle Aas.
1022 - README: tell of xsubpp '-nolinenumber' woes. thanks to
1023 Edward Henigin <ed@texas.net> for pointing out the problem.
1025 1.14 Wed Nov 5 9:40 1997
1026 - Makefile.PL: look for setitimer
1027 - HiRes.xs: if missing ualarm, but we have setitimer, make up
1028 our own setitimer. These were provided by Gisle Aas.
1030 1.13 Tue Nov 4 23:30 1997
1031 - Makefile.PL: fix autodetect mechanism to do try linking in addition
1032 to just compiling; should fix Linux build problem. Fix was provided
1035 1.12 Sun Oct 12 12:00:00 1997
1036 - Makefile.PL: set XSOPT to '-nolinenumbers' to work around xsubpp bug;
1037 you may need to comment this back out if you have an older xsubpp.
1038 - HiRes.xs: set PROTOTYPES: DISABLE
1040 1.11 Fri Sep 05 16:00:00 1997
1042 Had some line commented out that shouldn't have been (testing
1045 Previous version was corrupted.
1047 1.10 Thu May 22 20:20:00 1997
1048 - HiRes.xs, HiRes.pm, t/*:
1049 - only compile what we have OS support for (or can
1051 - only test what we compiled
1052 - gross improvement to the test suite
1054 This work was all done by Roderick Schertler
1055 <roderick@argon.org>. If you run Linux or
1056 one of the other ualarm-less platforms, and you like this
1057 module, let Roderick know; without him, it still wouldn't
1058 be working on those boxes...
1059 - Makefile.PL: figure out what routines the OS has and
1060 only build what we need. These bits were written by Jarkko
1061 Hietaniemi <jhi@iki.fi>. Again, gratitude is due...
1063 1.02 Mon Dec 30 08:00:00 1996
1064 - HiRes.pm: update documentation to say what to do when missing
1065 ualarm() and friends.
1066 - README: update to warn that ualarm() and friends need to exist
1068 1.01 Fri Oct 17 08:00:00 1996
1069 - Makefile.PL: make XSPROTOARGS => '-noprototyopes'
1070 - HiRes.pm: put blank line between __END__ and =head1 so that
1073 1.00 Tue Sep 03 13:00:00 1996
1074 - original version; created by h2xs 1.16