From: takashikkbn@... Date: 2017-05-26T12:45:38+00:00 Subject: [ruby-dev:50137] [Ruby trunk Feature#11952] Use getrusage for Process.times if available Issue #11952 has been updated by k0kubun (Takashi Kokubun). Does anyone have opinion about this? Can I commit this? I think it would be good to apply this patch to improve lib/benchmark.rb's precision. ---------------------------------------- Feature #11952: Use getrusage for Process.times if available https://bugs.ruby-lang.org/issues/11952#change-65104 * Author: k0kubun (Takashi Kokubun) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Since times(3) has poor precision, I want to use getrusage(2) for Process.times to get better precision if getrusage is available. before: Process.times #=> # after: Process.times #=> # ---Files-------------------------------- 0001-Use-getrusage-for-Process.times-if-available.patch (1.54 KB) -- https://bugs.ruby-lang.org/