Revision history for the Perl extension Time::HiRes.
+1.9740_01 [2016-10-01]
+ - explicit cast to clockid_t needed for C++11 (gcc 6, clang 3.9)
+
1.9740 [2016-09-25]
- the ext3/ext2 filesystems do not have subsecond resolution,
therefore skip the t/utime.t test
stat lstat utime
);
-our $VERSION = '1.9740';
+our $VERSION = '1.9740_01';
our $XS_VERSION = $VERSION;
$VERSION = eval $VERSION;
#ifdef TIME_HIRES_CLOCK_GETTIME_SYSCALL
status = syscall(SYS_clock_gettime, clock_id, &ts);
#else
- status = clock_gettime(clock_id, &ts);
+ status = clock_gettime((clockid_t)clock_id, &ts);
#endif
RETVAL = status == 0 ? ts.tv_sec + (NV) ts.tv_nsec / NV_1E9 : -1;
#ifdef TIME_HIRES_CLOCK_GETRES_SYSCALL
status = syscall(SYS_clock_getres, clock_id, &ts);
#else
- status = clock_getres(clock_id, &ts);
+ status = clock_getres((clockid_t)clock_id, &ts);
#endif
RETVAL = status == 0 ? ts.tv_sec + (NV) ts.tv_nsec / NV_1E9 : -1;