From: Charles Oliver Nutter Date: 2011-01-19T06:26:41+09:00 Subject: [ruby-core:34572] Re: [PATCH] Add thread timing to Struct::Tms On Tue, Jan 18, 2011 at 3:20 PM, Charles Oliver Nutter wrote: > On Tue, Jan 18, 2011 at 3:18 PM, Charles Oliver Nutter > wrote: >> The addition of thread timings to Struct::Tms seems good to me. > > Actually, I just remember that someone (maybe me) proposed adding > Thread.times a long time ago, for the current thread's times. Ah-ha! It WAS me! Here's an implementation of Thread.times for JRuby that I added a couple years ago. We isolate it in the 'jruby/core_ext' library. There's probably a half-dozen people in the world that know it's there. https://github.com/jruby/jruby/blob/master/src/org/jruby/RubyJRuby.java#L610 - Charlie