1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {
- "_args": [
- [
- {
- "raw": "performance-now@^0.2.0",
- "scope": null,
- "escapedName": "performance-now",
- "name": "performance-now",
- "rawSpec": "^0.2.0",
- "spec": ">=0.2.0 <0.3.0",
- "type": "range"
- },
- "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request"
- ]
- ],
- "_from": "performance-now@>=0.2.0 <0.3.0",
- "_id": "performance-now@0.2.0",
- "_inCache": true,
- "_location": "/performance-now",
- "_npmUser": {
- "name": "meryn",
- "email": "merynstol@gmail.com"
- },
- "_npmVersion": "1.3.24",
- "_phantomChildren": {},
- "_requested": {
- "raw": "performance-now@^0.2.0",
- "scope": null,
- "escapedName": "performance-now",
- "name": "performance-now",
- "rawSpec": "^0.2.0",
- "spec": ">=0.2.0 <0.3.0",
- "type": "range"
- },
- "_requiredBy": [
- "/request"
- ],
- "_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz",
- "_shasum": "33ef30c5c77d4ea21c5a53869d91b56d8f2555e5",
- "_shrinkwrap": null,
- "_spec": "performance-now@^0.2.0",
- "_where": "/mnt/Data/bach/Documents/ola/OLA#4/OLA#4DOC/sys/node_modules/request",
- "author": {
- "name": "Meryn Stol",
- "email": "merynstol@gmail.com"
- },
- "bugs": {
- "url": "https://github.com/meryn/performance-now/issues"
- },
- "dependencies": {},
- "description": "Implements performance.now (based on process.hrtime).",
- "devDependencies": {
- "coffee-script": "~1.7.1",
- "mocha": "~1.21.0"
- },
- "directories": {},
- "dist": {
- "shasum": "33ef30c5c77d4ea21c5a53869d91b56d8f2555e5",
- "tarball": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz"
- },
- "homepage": "https://github.com/meryn/performance-now",
- "keywords": [],
- "license": "MIT",
- "main": "lib/performance-now.js",
- "maintainers": [
- {
- "name": "meryn",
- "email": "merynstol@gmail.com"
- }
- ],
- "name": "performance-now",
- "optionalDependencies": {},
- "private": false,
- "readme": "# performance-now [](https://travis-ci.org/meryn/performance-now) [](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",
- "repository": {
- "type": "git",
- "url": "git://github.com/meryn/performance-now.git"
- },
- "scripts": {
- "prepublish": "npm test",
- "pretest": "make build",
- "test": "make test"
- },
- "version": "0.2.0"
- }
|