1.0.4 • Published 1 year ago

@theroyalwhee0/hrdate v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

hrDate: @theroyalwhee/hrdate

High Resolution Date Time for NodeJS.

No significant attempts were made to profile or measure accuracy this code. It's main purpose is to get unique timestamps.

Browser Support

hrDate does not support browsers as it depends on process.hrtime. It would not hard to add browser support, but performance.now() is limited because of mitigations against Spectre.

Example

const { hrDate } = require('@theroyalwhee0/hrdate');
const [second, nanosecond] = hrDate();
console.log(`${second}.${nanosecond}`);

Links

Legal & License

Copyright 2017-2023 Adam Mill

This library is released under Apache 2 license. See LICENSE for more details.

1.0.4

1 year ago

1.0.3

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

7 years ago

0.0.2

7 years ago