precise
Precision timer for nanosecond differences
Last updated 5 years ago by avoidwork .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install precise 
SYNC missed versions from official npm registry.

precise

Nanosecond timer for node.js

build status

API

start()

Starts a timer

stop()

Stops a timer

diff()

Returns the nanoseconds between start() & stop()

Example

var precise = require('precise'),
    timer   = precise().start();

setTimeout(function () {
	console.log(timer.stop().diff());
}, 1000);

Current Tags

  • 1.1.0                                ...           latest (5 years ago)

3 Versions

  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 3
Last Day 3
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |