From: "naruse (Yui NARUSE)" Date: 2013-08-16T14:43:33+09:00 Subject: [ruby-core:56637] [CommonRuby - Feature #8777][Closed] Process.mach_absolute_time Issue #8777 has been updated by naruse (Yui NARUSE). Status changed from Open to Closed Oops, I didn't notice this ticket. I committed mach_absolute_time at r42573 as a part of get_clocktime with Process::CLOCK_MONOTONIC http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/KernelProgramming/services/services.html#//apple_ref/doc/uid/TP30000905-CH219-BEHJDFCA https://developer.apple.com/library/mac/qa/qa1398/_index.html http://www.python.org/dev/peps/pep-0418/#monotonic-clocks ---------------------------------------- Feature #8777: Process.mach_absolute_time https://bugs.ruby-lang.org/issues/8777#change-41176 Author: tenderlovemaking (Aaron Patterson) Status: Closed Priority: Normal Assignee: Category: Target version: Hi, This is related to #8658. `mach_absolute_time` will give us a monotonic clock on OS X. I'm not sure if this fits in to `clock_gettime`, so I've added a new function for getting the absolute time and another function for converting the absolute time to nanoseconds. /cc @akr -- http://bugs.ruby-lang.org/