{"repo":"copiousfreetime/hitimes","free":true,"listed":false,"github":"https://github.com/copiousfreetime/hitimes","clone":"git clone https://github.com/copiousfreetime/hitimes.git","description":"a fast, high resolution timer library for recording performance metrics","language":"Ruby","stars":152,"topics":["metrics","ruby","stats"],"license":"ISC","category":"analytics","readme_excerpt":"Hitimes Homepage Github project DESCRIPTION A fast, high resolution timer library for recording performance metrics. TABLE OF CONTENTS Requirements Usage Contributing Support License REQUIREMENTS Hitimes requires the following to run: Ruby USAGE Hitimes easiest to use when installed with rubygems : Or as part of your bundler Gemfile : You can load it with the standard ruby require statement. Interval Use Hitimes::Interval to calculate only the duration of a block of code. Returns the time as seconds. TimedMetric Use a Hitimes::TimedMetric to calculate statistics about an iterative operation Explicitly use start and stop : Or use the block. In TimedMetric the return value of measure is the return value of the block. And then look at the stats ValueMetric Use a Hitimes::ValueMetric to calculate statistics about measured samples. TimedValueMetric Use a Hitimes::TimedValueMetric to calculate statistics about batches of samples. Implementation details Hitimes uses the internal ruby Process::clock gettime() to get the highest granularity time increment possible. Generally this is nanosecond resolution, or whatever the hardware in the CPU supports. SUPPORT Hitimes is supported on whatever versions of ruby are currently supported. Hitimes also follows semantic versioning. The current officially supported versions of Ruby are: MRI Ruby (all platforms) 3.0 - current JRuby 9.4.x.x Truffleruby 24 Unofficially supported versions, any version of MRI from Ruby 2.1 and up. Since the C Extens","default_branch":null,"files":null,"tree":[],"storefront":"/r/copiousfreetime","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/copiousfreetime/hitimes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}