ruby-changes:54823
From: akr <ko1@a...>
Date: Sat, 9 Feb 2019 23:55:03 +0900 (JST)
Subject: [ruby-changes:54823] akr:r67042 (trunk): new constant: Process::CLOCK_TAI.
akr 2019-02-09 23:54:54 +0900 (Sat, 09 Feb 2019) New Revision: 67042 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67042 Log: new constant: Process::CLOCK_TAI. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 67041) +++ process.c (revision 67042) @@ -7652,6 +7652,7 @@ ruby_real_ms_time(void) https://github.com/ruby/ruby/blob/trunk/process.c#L7652 * [CLOCK_UPTIME_RAW_APPROX] macOS 10.12 * [CLOCK_UPTIME_PRECISE] FreeBSD 8.1 * [CLOCK_SECOND] FreeBSD 8.1 + * [CLOCK_TAI] Linux 3.10 * * Note that SUS stands for Single Unix Specification. * SUS contains POSIX and clock_gettime is defined in the POSIX part. @@ -8408,6 +8409,10 @@ InitVM_process(void) https://github.com/ruby/ruby/blob/trunk/process.c#L8409 /* see Process.clock_gettime */ rb_define_const(rb_mProcess, "CLOCK_SECOND", CLOCKID2NUM(CLOCK_SECOND)); #endif +#ifdef CLOCK_TAI + /* see Process.clock_gettime */ + rb_define_const(rb_mProcess, "CLOCK_TAI", CLOCKID2NUM(CLOCK_TAI)); +#endif rb_define_module_function(rb_mProcess, "clock_gettime", rb_clock_gettime, -1); rb_define_module_function(rb_mProcess, "clock_getres", rb_clock_getres, -1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/