1.0.1 • Published 1 year ago

@ircam/sc-gettime v1.0.1

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
1 year ago

@ircam/sc-gettime

Provide a unified clock in seconds accross platforms, with an origin defined by the start of the process.

Install

npm install --save @ircam/sc-gettime

Usage

The interface is the same wether you are on a node process

import { getTime } from '@ircam/sc-gettime';

setInterval(() => {
  console.log(getTime());
}, 1000);

Notes

License

BSD-3-Clause