mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
new constant: Process::CLOCK_TAI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d490f6ef8
commit
b1cb15c4a4
1 changed files with 5 additions and 0 deletions
|
@ -7652,6 +7652,7 @@ ruby_real_ms_time(void)
|
||||||
* [CLOCK_UPTIME_RAW_APPROX] macOS 10.12
|
* [CLOCK_UPTIME_RAW_APPROX] macOS 10.12
|
||||||
* [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
|
* [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
|
||||||
* [CLOCK_SECOND] FreeBSD 8.1
|
* [CLOCK_SECOND] FreeBSD 8.1
|
||||||
|
* [CLOCK_TAI] Linux 3.10
|
||||||
*
|
*
|
||||||
* Note that SUS stands for Single Unix Specification.
|
* Note that SUS stands for Single Unix Specification.
|
||||||
* SUS contains POSIX and clock_gettime is defined in the POSIX part.
|
* SUS contains POSIX and clock_gettime is defined in the POSIX part.
|
||||||
|
@ -8407,6 +8408,10 @@ InitVM_process(void)
|
||||||
#ifdef CLOCK_SECOND
|
#ifdef CLOCK_SECOND
|
||||||
/* see Process.clock_gettime */
|
/* see Process.clock_gettime */
|
||||||
rb_define_const(rb_mProcess, "CLOCK_SECOND", CLOCKID2NUM(CLOCK_SECOND));
|
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
|
#endif
|
||||||
rb_define_module_function(rb_mProcess, "clock_gettime", rb_clock_gettime, -1);
|
rb_define_module_function(rb_mProcess, "clock_gettime", rb_clock_gettime, -1);
|
||||||
rb_define_module_function(rb_mProcess, "clock_getres", rb_clock_getres, -1);
|
rb_define_module_function(rb_mProcess, "clock_getres", rb_clock_getres, -1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue