timestamp
Monotonically increasing timestamp.
Last updated 8 years ago by dominictarr .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install timestamp 
SYNC missed versions from official npm registry.

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.

<img src=https://secure.travis-ci.org/'Dominic Tarr'/timestamp.png?branch=master>

##TODO

syncronize network time.

License

MIT

Current Tags

  • 0.0.1                                ...           latest (8 years ago)

1 Versions

  • 0.0.1                                ...           8 years ago

Copyright 2014 - 2016 © taobao.org |