This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Linux-specific clock_gettime() constants.
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 13 Jan 2016 18:03:07 +0000 (13:03 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 13 Feb 2016 16:39:10 +0000 (11:39 -0500)
http://man7.org/linux/man-pages/man2/clock_gettime.2.html

dist/Time-HiRes/Makefile.PL

index f6fdee6..1c29b70 100644 (file)
@@ -820,10 +820,14 @@ sub doConstants {
     if (eval {require ExtUtils::Constant; 1}) {
        my @names = qw(
                        CLOCKS_PER_SEC
+                       CLOCK_BOOTTIME
                        CLOCK_HIGHRES
                        CLOCK_MONOTONIC
+                       CLOCK_MONOTONIC_COARSE
+                       CLOCK_MONOTONIC_RAW
                        CLOCK_PROCESS_CPUTIME_ID
                        CLOCK_REALTIME
+                       CLOCK_REALTIME_COARSE
                        CLOCK_SOFTTIME
                        CLOCK_THREAD_CPUTIME_ID
                        CLOCK_TIMEOFDAY