From: Aaron Patterson Date: 2013-08-16T14:13:38+09:00 Subject: [ruby-core:56635] Re: [CommonRuby - Feature #8777][Open] Process.mach_absolute_time On Sun, Aug 11, 2013 at 09:46:41PM +0900, Tanaka Akira wrote: > 2013/8/11 tenderlovemaking (Aaron Patterson) : > > 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/