From: Tomoyuki Chikanaga Date: 2011-05-12T00:12:10+09:00 Subject: [ruby-core:36106] [Ruby 1.9 - Bug #4581] Documentation for Process.times is outdated Issue #4581 has been updated by Tomoyuki Chikanaga. Category set to DOC Assignee set to Tomoyuki Chikanaga Hi, Thank you for your reporting this. I wrote a tiny patch. I'll check in this later. Any corrections are welcome :) ------------------------------------- diff --git a/process.c b/process.c index 24e7bf9..6699484 100644 --- a/process.c +++ b/process.c @@ -5611,12 +5611,12 @@ p_gid_switch(VALUE obj) * call-seq: * Process.times -> aStructTms * - * Returns a Tms structure (see Struct::Tms - * on page 388) that contains user and system CPU times for this - * process. + * Returns a Tms structure (see Struct::Tms) + * that contains user and system CPU times for this process, + * and also for children processes. * * t = Process.times - * [ t.utime, t.stime ] #=> [0.0, 0.02] + * [ t.utime, t.stime, t.cutime, t.cstime ] #=> [0.0, 0.02, 0.00, 0.00] */ VALUE ---------------------------------------- Bug #4581: Documentation for Process.times is outdated http://redmine.ruby-lang.org/issues/4581 Author: Andrew Grimm Status: Open Priority: Normal Assignee: Tomoyuki Chikanaga Category: DOC Target version: ruby -v: ruby 1.9.3dev (2011-03-05 trunk 31026) [x86_64-darwin10.6.0] =begin The code sample for Process.times only mentions utime and stime, even though there's cutime and sctime as well. There's also a reference to "page 388", presumably of the first edition of the Pickaxe. Should that be updated or deleted? =end -- http://redmine.ruby-lang.org