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