elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Benchmark::Tms#format
Returns the contents of this Tms object as a formatted string, according to a format string like that passed to Kernel.format. In addition, #format accepts the following extensions: <tt>%u</tt>:: Replaced by the user CPU time, as reported by Tms#utime. <tt>%y</tt>:: Replaced by the system CPU time, as reported by #stime (Mnemonic: y of "s*y*stem") <tt>%U</tt>:: Replaced by the children's user CPU time, as reported by Tms#cutime <tt>%Y</tt>:: Replaced by the children's system CPU time, as reported by Tms#cstime <tt>%t</tt>:: Replaced by the total CPU time, as reported by Tms#total <tt>%r</tt>:: Replaced by the elapsed real time, as reported by Tms#real <tt>%n</tt>:: 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.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Benchmark--Tms-format-for-pr
# Commit to gitgit add git commit -m "better docs for Benchmark::Tms#format"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Benchmark--Tms-format-for-pr
hub pull-request
# Celebrate!