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