RubyGems Navigation menu

absolute_time 0.1.0

This gem provides a monotonically increasing timer to permit safe measurement of time intervals. Using Time.now for measuring intervals is not reliable (and sometimes unsafe) because the system clock may be stepped forwards or backwards between the two measurements, or may be running slower or faster than real time in order to effect clock synchronization with UTC. The module uses OS-specific functions such as mach_absolute_time() and clock_gettime() to access the system tick counter. The time values returned by this module cannot be interpreted as real time clock values; they are only useful for comparison with another time value from this module.

版本列表:

  1. 1.0.0 - February 06, 2013 (11.5 KB)
  2. 0.1.0 - September 17, 2011 (6.5 KB)

作者:

  • Brian Buchanan

所有者:

464d1775d70b7abf03c54208be5311e9

SHA 256 checksum:

fc33d64463c1b6c2609bf7c07db106291f7245c8a1412c8117413cd83867e3f6

下载总次数 86,603

这个版本 8,337

Gemfile:
= Copy to clipboard Copied!

安装:
=

Licenses:

N/A

Required Ruby Version: None

相关链接: