[ruby-core:69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts

From: normalperson@...
Date: 2015-05-06 22:34:16 UTC
List: ruby-core #69084
Issue #11124 has been reported by Eric Wong.

----------------------------------------
Feature #11124: [PATCH] lib/*: use monotonic clock for timeouts
https://bugs.ruby-lang.org/issues/11124

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
The monotonic clock is preferred as it is guaranteed to be
continuous and not subject to jumps due to adjustments.

Given the identical "now" method in both files (and similar code in
lib/benchmark.rb), I wonder if we should implement something like
Process.now instead...

Anyways, I'll commit this patch as-is in a few weeks/months unless there's
objections.


---Files--------------------------------
0001-lib-use-monotonic-clock-for-timeouts.patch (2.8 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next