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