{
  "name": "performance-now",
  "description": "Implements performance.now (based on process.hrtime).",
  "keywords": [],
  "version": "0.2.0",
  "author": {
    "name": "Meryn Stol",
    "email": "merynstol@gmail.com"
  },
  "license": "MIT",
  "homepage": "https://github.com/meryn/performance-now",
  "bugs": {
    "url": "https://github.com/meryn/performance-now/issues"
  },
  "repository": {
    "type": "git",
    "url": "git://github.com/meryn/performance-now.git"
  },
  "private": false,
  "dependencies": {},
  "devDependencies": {
    "coffee-script": "~1.7.1",
    "mocha": "~1.21.0"
  },
  "optionalDependencies": {},
  "main": "lib/performance-now.js",
  "scripts": {
    "prepublish": "npm test",
    "pretest": "make build",
    "test": "make test"
  },
  "readme": "# performance-now [![Build Status](https://travis-ci.org/meryn/performance-now.png?branch=master)](https://travis-ci.org/meryn/performance-now) [![Dependency Status](https://david-dm.org/meryn/performance-now.png)](https://david-dm.org/meryn/performance-now)\n\nImplements a function similar to `performance.now` (based on `process.hrtime`).\n\nModern browsers have a `window.performance` object with - among others - a `now` method which gives time in miliseconds, but with sub-milisecond precision. This module offers the same function based on the Node.js native `process.hrtime` function.\n\nAccording to the [High Resolution Time specification](http://www.w3.org/TR/hr-time/), the number of miliseconds reported by `performance.now` should be relative to the value of `performance.timing.navigationStart`. For this module, it's relative to when the time when this module got loaded. Right after requiring this module for the first time, the reported time is expected to have a near-zero value.\n\nUsing `process.hrtime` means that the reported time will be monotonically increasing, and not subject to clock-drift.\n\n## Example usage\n\n```javascript\nvar now = require(\"performance-now\")\nvar start = now()\nvar end = now()\nconsole.log(start.toFixed(3)) // ~ 0.05 on my system\nconsole.log((start-end).toFixed(3)) // ~ 0.002 on my system\n```\n\nRunning the now function two times right after each other yields a time difference of a few microseconds. Given this overhead, I think it's best to assume that the precision of intervals computed with this method is not higher than 10 microseconds, if you don't know the exact overhead on your own system.\n\n## Credits\n\nThe initial structure of this module was generated by [Jumpstart](https://github.com/meryn/jumpstart), using the [Jumpstart Black Coffee](https://github.com/meryn/jumpstart-black-coffee) template.\n\n## License\n\nperformance-now is released under the [MIT License](http://opensource.org/licenses/MIT).  \nCopyright (c) 2013 Meryn Stol  ",
  "readmeFilename": "README.md",
  "_id": "performance-now@0.2.0",
  "_shasum": "33ef30c5c77d4ea21c5a53869d91b56d8f2555e5",
  "_from": "performance-now@^0.2.0",
  "_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz"
}
