0.0
No commit activity in last 3 years
No release in over 3 years
Monotonic clock time in seconds
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

~> 1.2
 Project Readme

MonotonicTime

Monotonic clock time in seconds

Build Status

Why

Existing cross-platform monotonic time gem `hitimes' returns nanoseconds, but I find it more convenient to work with seconds. This gem provides that.

Example

Only two methods are provided:

  require 'monotonic_time'

  MonotonicTime.now #=> 7056926.918025866

  MonotonicTime.measure { sleep 0.5 } #=> 0.5000940272584558

Installation

gem install monotonic_time