Upgrade to Time::HiRes 1.73
[p5sagit/p5-mst-13.2.git] / ext / Time / HiRes / Changes
CommitLineData
dcf686c9 1Revision history for Perl extension Time::HiRes.
2
937b804e 31.73 - Time::HiRes::nanosleep support for Solaris [PATCH]
4 (POSIX::uname() not available if building with core perl,
5 from Gisle Aas, via perl5-porters, perl change #25295)
6
0cf8ddea 71.72 - going back to the 1.68 loader setup (using DynaLoader)
8 since too many weird things starting breaking
9 - fix a typo in José Auguste-Etienne's name
10
56c1b3bd 111.71 - a thinko in the nanosleep() detection
12 - move more changes stuff from the README to Changes
13 - add -w to the Makefile.PL
14
f8daf111 151.70 - oops in 1.69 about @ISA (not affecting anything but silly)
16 - add copyright 2005 to HiRes.pm
17 - add copyright and license to HiRes.xs
56c1b3bd 18 - add copyrights 2003, 2004, 2005 to README
f8daf111 19
56c1b3bd 201.69 - actually run a test for nanosleep
21 (if there is no $Config{d_nanosleep}) since e.g. in AIX 4.2
26e22fd9 22 it seems that one can link in nanosleep() but then calling
23 it fails instantly and sets errno to ENOSYS (Not implemented).
24 This may be fixable in the AIX case by figuring out the right
25 (realtime POSIX?) libs and whatnot, but in the general case
26 running a real test case is better. (Of course, this change
27 will no doubt run into portability problems because of the
0cf8ddea 28 execution step...) Note that because of hysterical raisins
29 most Perls do NOT have $Config{d_nanosleep} (scanning for
30 it by Configure would in many platforms require linking in
31 things like -lrt, which would in many platforms be a bad idea
32 for Perl itself).
33 (from José Auguste-Etienne)
26e22fd9 34 - support XSLoader also since it's much faster
35 (from Alexey Tourbin)
36 - add SEE ALSO (BSD::Resource and Time::TAI64)
37
993164ab 381.68
39 - somehow 1.67 had a lot of doubled lines (a major cut-and-paste
40 error suspected), but miraculously it still worked since the
41 doubling took place below the __END__ token
42 - undef Pause() before defining it to avoid redefinition warnings
43 during compilation in case perl.h had already defined Pause()
44 (part of perl change #24271)
45 - minor doc tweaks
46
471.67
48 - (internal) don't ignore the return value of gettimeofday()
49 - (external) return undef or an empty if the C gettimeofday() fails
50 (affects Time::HiRes gettimeofday() and the hires time())
51
44d3ce20 521.66
53 - add nanosleep()
54 - fix the 'hierachy' typo in Makefile.PL [rt.cpan.org #8492]
55 - should now build in Solaris [rt.cpan.org #7165] (since 1.64)
56 - should now build in Cygwin [rt.cpan.org #7535] (since 1.64)
57 - close also [rt.cpan.org #5933] "Time::HiRes::time does not pick up time adjustments like ntp" since ever reproducing it in the same environment
58 has become rather unlikely
59
64a7a97c 601.65
61 - one should not mix u?alarm and sleep (the tests modified
62 by 1.65, #12 and #13, hung in Solaris), now we just busy
63 loop executing an empty block
64 - in the documentation underline the unspecificity of mixing
65 sleeps and alarms
66 - small spelling fixes
67
681.64
69 - regenerate ppport.h with Devel::PPPort 3.03,
70 now the MY_CXT_CLONE is defined in ppport.h,
71 we no more need to do that.
72
73 - the test #12 would often hang in sigsuspend() (at least that's
74 where Mac OS X' ktrace shows it hanging). With the sleep()s
75 changed to sleep(1)s, the tests still pass but no hang after
76 a few hundred repeats.
77
1fbb4de4 781.63
79 - Win32 and any ithread build: ppport.h didn't define
80 MY_CXT_CLONE, which seems to be a Time-HiResism.
81
821.62
83 - Skip testing if under PERL_CORE and Time::HiRes has not
84 been Configured (from Marcus Holland-Moritz, core change
85 #23246)
86 - Use ppport.h generated by Devel::PPPort 3.01,
87 allowing cutting away our own portability code.
88 - Don't use $ENV{PERL_CORE} for < 5.6.0.
89 - Don't use "for my $i" for <= 5.003.
90 - Don't use Pause() for <= 5.003.
91 - Can't use newSVpvf for <= 5.003.
92 (most of the changes from Marcus)
93
4ed0e2d4 941.61
95 - Win32: reset reading from the performance counters every
96 five minutes to better track wall clock time (thanks to
97 PC timers being often quite bad), should help long-running
98 programs.
99
1001.60
101 - Win32: Patch from Steve Hay
102 [PATCH] Re: [perl #30755] [Win32] Different results from Time::HiRes::gettimeofdayunder the debugger
103 to [perl #30755] reported by Nigel Sandever
104
105 - Cygwin: Use the Win32 recalibration code also in Cygwin if the
106 <w32api/windows.h> APIs are available. Cygwin testing by
107 Yitzchak Scott-Thoennes.
108
109 - Solaris: use -lposix4 to get nanosleep for Solaris 2.6,
110 after that keep using -lrt, patch from Alan Burlison,
111 bug reported in [cpan #7165]
112
d8cb5b61 1131.59
114 - Change the Win32 recalibration limit to 0.5 seconds and tweak
115 the documentation to blather less about the gory details of the
116 Win32 implementation and more about the complications in general
117 of meddling with the system clock.
118
1191.58
120 - Document the 1.57 change better.
121
c1dc6e7c 1221.57
d8cb5b61 123 - Win32/Cygwin/MinGW: if the performance counter drifts by more
124 than two seconds from the system clock (due to ntp adjustments,
c1dc6e7c 125 for example), recalibrate our internal counter: from Jan Dubois,
126 based on [cpan #5933] by Jerry D. Hedden.
127
1caec985 1281.56
129 - Give a clearer message if the tests timeout (perl change #22253)
130 - Don't use /tmp or its moral equivalents (perl bug #15036,
131 perl change #22258)
132
b6136f41 1331.55
4ed0e2d4 134 - Windows: mingw32 patch from Mike Pomraning (use Perl's Const64()
b6136f41 135 instead of VC-specific i64 suffix)
136
0225372c 1371.54
138 - Solaris: like Tru64 (dec_osf) also Solaris need -lrt for nanosleep
139
1401.53
141 - Windows: higher resolution time() by using the Windows
142 performance counter API, from Jan Dubois and Anton Shcherbinin.
143 The exact new higher resolution depends on the hardware,
144 but it should be quite a bit better than using the basic
145 Windows timers.
146
690f7c5f 1471.52
148 - In AIX (v?) with perl 5.6.1 the HiRes.t can hang after
149 the subtest 18. No known analysis nor fix, but added
150 an alarm (that requires fork() and alarm()) to the test.
151
b85af263 1521.51
153 - doc tweaks from mjd (perl change #20456)
154 - NCR MP-RAS hints file added (svr4.pl) (perl change #21249)
155
d7358e6a 1561.50
157 - add a message (for non-core builds) to Makefile.PL about
158 the LC_ALL=C workaround
159 - &Time::HiRes::d_nanosleep was broken (perl change #20131)
160 - the nanosleep() probe was broken (perl change #20061)
161 - use existence instead of definedness for feature probes
162 (perl change #20043)
163 - MPE/iX tweak (perl change #20042)
164 - do not use HAS_NANOSLEEP (perl change #19898)
165
df16a331 1661.49
167 - UVuf for non-IVSIZE platforms (from Keiichiro Nagano)
168 - OS/2 can always mix subsecond sleeps with signals
169 (part of perl change #19789)
170
2d9815af 1711.48
172 - workaround for buggy gcc 2.95.3 in openbsd/sparc64
173 (perl change #19592)
174
1a08a6ab 1751.47
2d9815af 176 - do not use -lrt in Linux (from March Lehmann, perl change #19449)
1a08a6ab 177 - unnecessary (nanosleep is in libc anyway)
178 - harmful (-lrt slows down execution)
179 - incompatible (with many distributions' pthreads)
180
25ca0970 1811.46
182 - do not create files in blib directories under core
183 (perl change #19160, from rgs)
184 - detypo s/VTLARM/VTARLM/ (perl change #19328, from mjd)
185
1861.45
187 - guarantee that $xdefine in HiRes.t is always defined
188 (perl change #19109, from IlyaZ)
189 - a cleaner way to detect PERL_CORE (perl change #19111,
190 from IlyaZ)
191
0be47ac6 1921.44
193 - add hints/irix.pl to turn off overly POSIX flags that
194 cause hide struct timespec to be hidden (and compilation
25ca0970 195 to fail) (bleadperl change #19085)
0be47ac6 196 - documentation tweaks
197
a0c8e3cf 1981.43
199 - add c:/temp to the list of temp directories to probe
200 so that cygwin (and win*?) builds are happy. This was
201 needed at least in my cygwin 1.3.20/w2k setup.
202
98b50af3 2031.42
204 - modernize the constants code (from Nicholas Clark)
205
2061.41
207 - At some point the ability to figure our the correct incdir
208 for EXTERN.h (either a core perl build, or an installed perl)
209 had broken (which lead into all test compiles failing with
210 a core perl build, but thanks to the robustness of Makefile.PL
a0c8e3cf 211 nothing of this was visible). The brokenness seemed to be
212 caused by $ENV{PERL_CORE} not being on for core builds?
213 Now stole a trick from the Encode that sets $ENV{PERL_CORE}
214 right, and both styles of build should work again.
98b50af3 215
2161.40
217 - Nicholas Clark noticed that the my_catdir() emulation function
218 was broken (which means that we didn't really work for Perls
219 5.002 and 5.003)
220 - inspired by fixing the above made the whole Makefile.PL -w
221 and strict clean
222 - tightened up the Makefile.PL output, less whitespace
223
6a20eacc 2241.39
225 - fix from Craig Berry for better building in VMS with PERL_CORE
226
3f2ee006 2271.38
228 - no functional changes
229 - move lib/Time/HiRes.pm as Hires.pm
230 - libraries scanning was slightly broken (always scanned
231 for a library even when $Config{libs} already had it)
232
2331.37
234 - Ray Zimmerman ran into a race condition in Mac OS X.
235 A 0.01-second alarm fired before the test expected.
236 The test first slept indefinitely (blocking for signals)
237 and only after that tested for the signal having been sent.
238 Since the signal had already been sent, the test #12 never
239 completed. The solution: test first, then block.
240 - default to being silent on all probing attempts, set the
241 environment variable VERBOSE to a true value to see the
242 details (the probing command and the possible errors)
243
2441.36
245 - do not clear MAN3PODS in Makefile.PL (Radoslaw Zielinski)
246 - INSTALLDIRS => 'perl' missing which means that Time::HiRes
247 cannot be upgraded from CPAN to override the 5.8.0 version
248 (Guido A. Ostkamp)
249 - Time::HiRes 1.35 could not be dropped as-is to bleadperl
250 because the include directories did not adjust themselves
251 if $ENV{PERL_CORE} (Hugo van der Sanden)
252 - add documentation about the restart of select() under alarm()
253
2541.35
255 - small documentation tweaks
256
257
2581.34
259 - better VMS operation (Craig Berry)
260
2611.33
262 - our time machine is accelerating: now works with Perl 5.004_01
263 (tried with 5.003_07 and 5.002 but I get segmentation faults
264 from running the Makefile.PL with those in Tru64 4.0D)
265
2661.32
267 - backward compatibility (pre-5.6.0) tweaks:
268 - no XSLoader in 5.00503, use DynaLoader instead
269 - no SvPV_nolen, either
270 - no PerlProc_pause(), either
271 - now tested with 5.00404 and 5.00503
272 - Makefile.PL requires 5.00404 (no more 5.002)
273 - use nanosleep instead of usleep, if it is available (Wilson Snyder)
274 (this means that one can mix subsecond sleeps with alarms)
275 - because of nanosleep we probe for -lrt and -lposix4
276 - the existence of getitimer/nanosleep/setitimer/ualarm/usleep
277 is available by exportable constants Time::HiRes::d_func
278 (since older Perl do not have them in %Config, and even
279 5.8.0 does not probe for nanosleep)
280
2811.31
282 - backward compatibility (pre-5.6.1) tweaks:
283 - define NV if no NVTYPE
284 - define IVdf if needed (note: the Devel::PPPort
285 in 5.8.0 does not try hard hard enough since
286 the IVSIZE might not be defined)
287 - define NVgf if needed
288 - grab the typemap from 5.8.0 for the NV stuff
56c1b3bd 289
290 1.31 and 1.32 add more backward compatibility (now all the way
291 back to Perl 5.00404), and using nanosleep() (if available) for
292 subsecond sleeps.
293
3f2ee006 2941.30
295
296 - release 1.29_02 as 1.30
297
56c1b3bd 298 1.30 adds all the changes made during the Perl 5.6->5.7->5.8
299 development cycle. Most notably portability across platforms has been
300 enhanced, and the interval timers (setitimer, getitimer) have been
301 added. Note that the version of Time::HiRes that is included in Perl
302 5.8.0 calls itself 1.20_00, but it is equivalent to this Time::HiRes
303 version. Note also that in 1.30 Wegscheid turns over the maintenance
304 to Jarkko Hietaniemi.
305
3f2ee006 3061.29_02
307
308 - fix a silly unclosed comment typo in HiRes.xs
309 - document and export REALTIME_REALPROF (Solaris)
310
3111.29_01
312
313 - only getitimer(ITIMER_REAL) available in Cygwin and Win32
314 (need to patch this also in Perl 5.[89])
315 - remove CVS revision log from HiRes.xs
316
3171.29_00
318
319 The following numbered patches refer to the Perl 5.7 changes,
320 you can browse them at http://public.activestate.com/cgi-bin/perlbrowse
321
322 - 17558: Add #!./perl to the .t
323 - 17201: linux + usemorebits fix, from Rafael Garcia-Suarez
324 - 16198: political correctness, from Simon Cozens
325 - 15857: doc tweaks, from Jarkko Hietaniemi
326 - 15593: optimization in .xs, from Paul Green
327 - 14892: pod fixes, from Robin Barker
328 - 14100: VOS fixes, from Paul Green
329 - 13422: XS segfault, from Marc Lehmann
330 - 13378: whether select() gets restarted on signals, depends
331 - 13354: timing constraints, again, from Andy Dougherty
332 - 13278: can't do subecond alarms with ualarm;
333 break out early if alarms do not seem to be working
334 - 13266: test relaxation (cygwin gets lower hires
335 times than lores ones)
336 - 12846: protect against high load, from Jarkko Hietaniemi
337 - 12837: HiRes.t VMS tweak, from Craig A. Berry
338 - 12797: HiRes.t VMS tweak, from Charles Lane
339 - 12769: HiRes.t VMS tweak, from Craig A. Berry
340 - 12744: gcc vs MS 64-bit constant syntax, from Nick Ing-Simmons
341 - 12722: VMS ualarm for VMS without ualarm, from Charles Lane
342 - 12692: alarm() ain't gonna work if ualarm() ain't,
343 from Gurusamy Sarathy
344 - 12680: minor VMS tweak, from Charles Lane
345 - 12617: don't try to print ints as IVs, from Jarkko Hietaniemi
346 - 12609: croak on negative time, from Jarkko Hietaniemi
347 - 12595: Cygwin rounds up for time(), from Jarkko Hietaniemi
348 - 12594: MacOS Classic timeofday, from Chris Nandor
349 - 12473: allow for more than one second for sleep() and usleep()
350 - 12458: test tuning, relax timing constraints,
351 from Jarkko Hietaniemi
352 - 12449: make sleep() and usleep() to return the number
353 of seconds and microseconds actually slept (analogously
354 with the builtin sleep()), also make usleep() croak if
355 asked for more than 1_000_000 useconds, from Jarkko Hietaniemi
356 - 12366: Time::HiRes for VMS pre-7.0, from Charles Lane
357 - 12199: do not use ftime on Win32, from Gurusamy Sarathy
358 - 12196: use ftime() on Win32, from Artur Bergman
359 - 12184: fix Time::HiRes gettimeofday() on Win32, from Gurusamy Sarathy
360 - 12105: use GetSystemTime() on Win32, from Artur Bergman
361 - 12060: explain the 1e9 seconds problem, from Jarkko Hietaniemi
362 - 11901: UNICOS sloppy division, from Jarkko Hietaniemi
363 - 11797: problem in HiRes.t, from John P. Linderman
364 - 11414: prototype from Time::HiRes::sleep(), from Abhijit Menon-Sen
365 - 11409: Time::HiRes qw(sleep) failed, from Abhijit Menon-Sen
366 - 11270: dynix/ptx 4.5.2 hints fix, from Peter Prymmer
367 - 11032: VAX VMS s/div/lib\$ediv/ fix, from Peter Prymmer
368 - 11011: VAX VMS s/qdiv/div/ fix, from Peter Prymmer
369 - 10953: SCO OpenServer 5.0.5 requires an explicit -lc for usleep(),
370 from Jonathan Stowe
371 - 10942: MPE/IX test tweaks, from Mark Bixby
372 - 10784: unnecessary pod2man calls, from Andy Dougherty
373 - 10354: ext/ + -Wall, from Doug MacEachern
374 - 10320: fix the BOOT section to call myU2time correctly
375 - 10317: correct casting for AIX< from H. Merijn Brand
376 - 10119: document that the core time() may be rounding, not truncating
377 - 10118: test fix, from John Peacock
378 - 9988: long =item, from Robin Barker
379 - 9714: correct test output
380 - 9708: test also the scalar aspect of getitimer()
381 - 9705: Add interval timers (setitimer, getitimer)
382 - 9692: do not require at least 5.005 using XS
383
384 The following changes were made on top of the changes
385 made for Time::HiRes during the Perl 5.7 development
386 cycle that culminated in the release of Perl 5.8.0.
387
388 - add "require 5.005" to the Makefile.PL
389 - remove the REVISION section (CVS log) from HiRes.pm
390 - add jhi's copyright alongside Douglas'
391 - move HiRes.pm to lib/Time/
392 - move HiRes.t to t/
393 - modify HiRes.t to use $ENV{PERL_CORE}
394 - modify the original Time::HiRes version 1.20 Makefile.PL
395 to work both with Perl 5.8.0 and the new code with pre-5.8.0
396 Perls (tried with 5.6.1)
397 - tiny tweaks and updates in README and TODO
398 - bump the VERSION to 1.29
399
dcf686c9 4001.20 Wed Feb 24 21:30 1999
401 - make our usleep and ualarm substitutes into hrt_usleep
402 and hrt_ualarm. This helps static links of Perl with other
403 packages that also have usleep, etc. From
404 Ilya Zakharevich <ilya@math.ohio-state.edu>
405 - add C API stuff. From Joshua Pritikin
406 <joshua.pritikin@db.com>
3f2ee006 407 - VMS Makefile.PL fun. From pvhp@forte.com (Peter Prymmer)
dcf686c9 408 - hopefully correct "-lc" fix for SCO.
409 - add PPD stuff
410
56c1b3bd 411 1.20 adds a platform neutral set of C accessible routines if you are
412 running 5.005+. All other changes are packaging changes and build
413 fixes(?) for statically linked Perl, SCO, and VMS.
414
dcf686c9 4151.19 Tue Sep 29 22:30 1998
416 - put VMS gettimeofday() in. Patch is from Sebastian Bazley
417 <seb@stian.demon.co.uk>
418 - change GIMME_V to GIMME to help people with older versions of
419 Perl.
420 - fix Win32 version of gettimeofday(). It didn't affect anything,
421 but it confuses people reading the code when the return value
422 is backwards (0 is success).
423 - fix Makefile.PL (more) so that detection of gettimeofday is
424 more correct.
425
56c1b3bd 426 1.19 has better VMS support.
427
dcf686c9 4281.18 Mon Jul 6 22:40 1998
429 - add usleep() for Win32.
430 - fix Makefile.PL to fix reported HP/UX feature where unresolved
431 externals still cause an executable to be generated (though no
432 x bit set). Thanks to David Kozinn for report and explanation.
433 Problems with the fix are mine :)
434
56c1b3bd 435 1.18 has limited Win32 support (no ualarm). Added usleep for Win32.
436 Probably buggy. I'm sure I'll hear.
437
dcf686c9 4381.17 Wed Jul 1 20:10 1998
439 - fix setitimer calls so microseconds is not more than 1000000.
440 Hp/UX 9 doesn't like that. Provided by Roland B Robert, PhD.
3f2ee006 441 - make Win32. We only get gettimeofday (the select hack doesn't
dcf686c9 442 seem to work on my Win95 system).
3f2ee006 443 - fix test 4 on 01test.t. add test to see if time() and
dcf686c9 444 Time::HiRes::time() are close.
445
4461.16 Wed Nov 12 21:05 1997
447 - add missing EXTEND in new gettimeofday scalar code.
448
56c1b3bd 449 1.16+ should be closer to building out of the box on Linux. Thanks
450 to Gisle Aas for patches, and the ualarm equivalent using setitimer.
451
452 If your underlying operating system doesn't implement ualarm(), then
453 a fake using setitimer() will be made. If the OS is missing usleep(),
454 a fake one using select() will be made. If a fake can't be made for
455 either ualarm() or usleep(), then the corresponding Perl function will
456 not be available. If the OS is missing gettimeofday(), you will get
457 unresolved externals, either at link- or run-time.
458
459 This is an improvement; the package used to not even build if
460 you were missing any of these bits. Roderick Schertler
461
462 <roderick@argon.org> did all the conditional compilation stuff,
463 look at HiRes.pm and the test suites; it's good educational reading.
464
dcf686c9 4651.15 Mon Nov 10 21:30 1997
466 - HiRes.pm: update pod. Provided by Gisle Aas.
467 - HiRes.xs: if gettimeofday() called in scalar context, do
468 something more useful than before. Provided by Gisle Aas.
469 - README: tell of xsubpp '-nolinenumber' woes. thanks to
470 Edward Henigin <ed@texas.net> for pointing out the problem.
471
4721.14 Wed Nov 5 9:40 1997
473 - Makefile.PL: look for setitimer
474 - HiRes.xs: if missing ualarm, but we have setitimer, make up
475 our own setitimer. These were provided by Gisle Aas.
476
4771.13 Tue Nov 4 23:30 1997
478 - Makefile.PL: fix autodetect mechanism to do try linking in addition
479 to just compiling; should fix Linux build problem. Fix was provided
480 by Gisle Aas.
481
4821.12 Sun Oct 12 12:00:00 1997
483 - Makefile.PL: set XSOPT to '-nolinenumbers' to work around xsubpp bug;
484 you may need to comment this back out if you have an older xsubpp.
485 - HiRes.xs: set PROTOTYPES: DISABLE
486
4871.11 Fri Sep 05 16:00:00 1997
488 - Makefile.PL:
489 Had some line commented out that shouldn't have been (testing
490 remnants)
491 - README:
492 Previous version was corrupted.
493
4941.10 Thu May 22 20:20:00 1997
495 - HiRes.xs, HiRes.pm, t/*:
496 - only compile what we have OS support for (or can
497 fake with select())
498 - only test what we compiled
499 - gross improvement to the test suite
500 - fix EXPORT_FAIL.
501 This work was all done by Roderick Schertler
502 <roderick@argon.org>. If you run Linux or
503 one of the other ualarm-less platoforms, and you like this
504 module, let Roderick know; without him, it still wouldn't
505 be working on those boxes...
506 - Makefile.PL: figure out what routines the OS has and
507 only build what we need. These bits were written by Jarkko
508 Hietaniemi <jhi@iki.fi>. Again, gratitude is due...
509
5101.02 Mon Dec 30 08:00:00 1996
511 - HiRes.pm: update documentation to say what to do when missing
512 ualarm() and friends.
513 - README: update to warn that ualarm() and friends need to exist
514
5151.01 Fri Oct 17 08:00:00 1996
516 - Makefile.PL: make XSPROTOARGS => '-noprototyopes'
517 - HiRes.pm: put blank line between __END__ and =head1 so that
518 pod2man works.
519
5201.00 Tue Sep 03 13:00:00 1996
521 - original version; created by h2xs 1.16