Feature #8777
closed
2013/8/11 tenderlovemaking (Aaron Patterson) tenderlove@ruby-lang.org:
Feature #8777: Process.mach_absolute_time
https://bugs.ruby-lang.org/issues/8777
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.
I think that "I'm not sure if this fits in to clock_gettime
" is
too weak reason to introduce new methods.
Tanaka Akira
On Sun, Aug 11, 2013 at 09:46:41PM +0900, Tanaka Akira wrote:
2013/8/11 tenderlovemaking (Aaron Patterson) tenderlove@ruby-lang.org:
Feature #8777: Process.mach_absolute_time
https://bugs.ruby-lang.org/issues/8777
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.
I think that "I'm not sure if this fits in to clock_gettime
" is
too weak reason to introduce new methods.
Sorry, I'm asking for help. I don't know how to fit it in with
clock_gettime
. Can you help me?
mach_absolute_time
requires a conversion to obtain nanoseconds, but it
seems the other clocks do not.
--
Aaron Patterson
http://tenderlovemaking.com/
- Status changed from Open to Closed
- Project changed from 14 to Ruby master
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0