diff --git a/.github/workflows/push_gem.yml b/.github/workflows/push_gem.yml index 83ffb85..5019826 100644 --- a/.github/workflows/push_gem.yml +++ b/.github/workflows/push_gem.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Harden Runner - uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 + uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 with: egress-policy: audit @@ -36,7 +36,7 @@ jobs: ruby-version: ruby - name: Publish to RubyGems - uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1 + uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1 - name: Create GitHub release run: | diff --git a/README.md b/README.md index 7144867..c570593 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates: 0.350000 0.400000 0.750000 ( 0.835234) ``` -This report shows the user CPU time, system CPU time, the sum of the user and system CPU times, and the elapsed real time. The unit of time is seconds. +This report shows the user CPU time, system CPU time, the total time (sum of user CPU time, system CPU time, children's user CPU time, and children's system CPU time), and the elapsed real time. The unit of time is seconds. Do some experiments sequentially using the #bm method: diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 380e818..0d1b8df 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -30,8 +30,9 @@ # # 0.350000 0.400000 0.750000 ( 0.835234) # -# This report shows the user CPU time, system CPU time, the sum of -# the user and system CPU times, and the elapsed real time. The unit +# This report shows the user CPU time, system CPU time, the total time +# (sum of user CPU time, system CPU time, children's user CPU time, +# and children's system CPU time), and the elapsed real time. The unit # of time is seconds. # # * Do some experiments sequentially using the #bm method: @@ -121,7 +122,7 @@ module Benchmark - VERSION = "0.4.0" + VERSION = "0.4.1" BENCHMARK_VERSION = "2002-04-25" # :nodoc: @@ -503,7 +504,7 @@ def /(x); memberwise(:/, x) end # accepts the following extensions: # # %u:: Replaced by the user CPU time, as reported by Tms#utime. - # %y:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem") + # %y:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem") # %U:: Replaced by the children's user CPU time, as reported by Tms#cutime # %Y:: Replaced by the children's system CPU time, as reported by Tms#cstime # %t:: Replaced by the total CPU time, as reported by Tms#total @@ -511,7 +512,7 @@ def /(x); memberwise(:/, x) end # %n:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame") # # If +format+ is not given, FORMAT is used as default value, detailing the - # user, system and real elapsed time. + # user, system, total and real elapsed time. # def format(format = nil, *args) str = (format || FORMAT).dup