0.2.2 • Published 8 years ago

monoclock v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Cross-platform Monotonic Clock CircleCI Build status

About

MonoClock provides a monotonic and steady clock for a variety of platforms, including Linux, OS X and Windows.

It provides two guarantees about that clock:

  • It progresses monotonically, which means the value of the clock will only increase between two calls, and never decrease.
  • It progresses steadily, which means that every tick takes the same amount of time (in terms of physical time).

Installation

npm install monoclock

Usage

import * as monoclock from 'monoclock';

monoclock.getTime();
// { sec: 20243, nsec: 723136835 }
0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago