ruby-changes:60764
From: Benoit <ko1@a...>
Date: Tue, 14 Apr 2020 01:25:09 +0900 (JST)
Subject: [ruby-changes:60764] a6f7458ea8 (master): Add a a list of cases for which clock_getres() has been observed to be inaccurate
https://git.ruby-lang.org/ruby.git/commit/?id=a6f7458ea8 From a6f7458ea81e084f6ebe7dc5c8cb5b7cb70fe2be Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Mon, 13 Apr 2020 18:23:39 +0200 Subject: Add a a list of cases for which clock_getres() has been observed to be inaccurate * See [Bug #16740] diff --git a/process.c b/process.c index bfc70f5..f13ec82 100644 --- a/process.c +++ b/process.c @@ -7959,8 +7959,11 @@ rb_clock_gettime(int argc, VALUE *argv, VALUE _) https://github.com/ruby/ruby/blob/trunk/process.c#L7959 * <code>clock_getres()</code> function. * * Note the reported resolution is often inaccurate on most platforms due to - * operating system bugs for this function and therefore the reported resolution + * underlying bugs for this function and therefore the reported resolution * often differs from the actual resolution of the clock in practice. + * Inaccurate reported resolutions have been observed for various clocks including + * CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW when using Linux, macOS, BSD or AIX + * platforms, when using ARM processors, or when using virtualization. * * +clock_id+ specifies a kind of clock. * See the document of +Process.clock_gettime+ for details. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/