Beta 7 with some repo names changed.
This commit is contained in:
1 parent
0f7b40cca7
commit
963c19493a
3408 files changed
+462217
-15516
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
// Generated by CoffeeScript 1.12.2
|
||||
(function() {
|
||||
var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
|
||||
|
||||
if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
|
||||
module.exports = function() {
|
||||
return performance.now();
|
||||
};
|
||||
} else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
|
||||
module.exports = function() {
|
||||
return (getNanoSeconds() - nodeLoadTime) / 1e6;
|
||||
};
|
||||
hrtime = process.hrtime;
|
||||
getNanoSeconds = function() {
|
||||
var hr;
|
||||
hr = hrtime();
|
||||
return hr[0] * 1e9 + hr[1];
|
||||
};
|
||||
moduleLoadTime = getNanoSeconds();
|
||||
upTime = process.uptime() * 1e9;
|
||||
nodeLoadTime = moduleLoadTime - upTime;
|
||||
} else if (Date.now) {
|
||||
module.exports = function() {
|
||||
return Date.now() - loadTime;
|
||||
};
|
||||
loadTime = Date.now();
|
||||
} else {
|
||||
module.exports = function() {
|
||||
return new Date().getTime() - loadTime;
|
||||
};
|
||||
loadTime = new Date().getTime();
|
||||
}
|
||||
|
||||
}).call(this);
|
||||
|
||||
//# sourceMappingURL=performance-now.js.map
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"name": "performance-now",
|
||||
"description": "Implements performance.now (based on process.hrtime).",
|
||||
"keywords": [],
|
||||
"version": "2.1.0",
|
||||
"author": "Braveg1rl <braveg1rl@outlook.com>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/braveg1rl/performance-now",
|
||||
"bugs": "https://github.com/braveg1rl/performance-now/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/braveg1rl/performance-now.git"
|
||||
},
|
||||
"private": false,
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"bluebird": "^3.4.7",
|
||||
"call-delayed": "^1.0.0",
|
||||
"chai": "^3.5.0",
|
||||
"chai-increasing": "^1.2.0",
|
||||
"coffee-script": "~1.12.2",
|
||||
"mocha": "~3.2.0",
|
||||
"pre-commit": "^1.2.2"
|
||||
},
|
||||
"optionalDependencies": {},
|
||||
"main": "lib/performance-now.js",
|
||||
"scripts": {
|
||||
"build": "mkdir -p lib && rm -rf lib/* && node_modules/.bin/coffee --compile -m --output lib/ src/",
|
||||
"prepublish": "npm test",
|
||||
"pretest": "npm run build",
|
||||
"test": "node_modules/.bin/mocha",
|
||||
"watch": "node_modules/.bin/coffee --watch --compile --output lib/ src/"
|
||||
},
|
||||
"typings": "src/index.d.ts"
|
||||
|
||||
,"_resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz"
|
||||
,"_integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
|
||||
,"_from": "performance-now@^2.1.0"
|
||||
}
|
||||
Reference in new issue
Block a user