timestamp

Monotonically increasing timestamp.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
timestamp
0.0.110 years ago10 years agoMinified + gzip package size for timestamp in KB

Readme

timestamp
Monotonically increasing timestamp.
This is NOT a accurate representation of the time. Since js only measures time as ms, if you call Date.now() twice quickly, it's possible to get two identical time stamps.
timestamp fixes that problem! (crudely)

Example

var timestamp = require('timestamp')

console.log(timestamp())
console.log(timestamp())
console.log(timestamp())
console.log(timestamp())
console.log(timestamp())

subsequent calls to timestamp() are ALWAYS strictly ordered.

TODO

syncronize network time.

License

MIT