monoclock
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

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 }

Readme

Keywords

Package Sidebar

Install

npm i monoclock

Weekly Downloads

3

Version

0.2.2

License

MIT

Last publish

Collaborators

  • srijs