aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-04-13 18:23:39 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-04-13 18:23:39 +0200
commita6f7458ea81e084f6ebe7dc5c8cb5b7cb70fe2be (patch)
tree77010d77261ce6daf45c2181898f635244c1280e /process.c
parentc28e230ab5865df55399431239c5fdd9b54206d6 (diff)
downloadruby-a6f7458ea81e084f6ebe7dc5c8cb5b7cb70fe2be.tar.gz
Add a a list of cases for which clock_getres() has been observed to be inaccurate
* See [Bug #16740]
Diffstat (limited to 'process.c')
-rw-r--r--process.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/process.c b/process.c
index bfc70f5bd9..f13ec82ba0 100644
--- a/process.c
+++ b/process.c
@@ -7959,8 +7959,11 @@ rb_clock_gettime(int argc, VALUE *argv, VALUE _)
* <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.