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