browser-process-hrtime
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -13,3 +13,2 @@ module.exports = hrtime | ||
function(){ return (new Date()).getTime() } | ||
performanceNow = performanceNow.bind(performance) | ||
@@ -19,3 +18,3 @@ // generate timestamp or delta | ||
function hrtime(previousTimestamp){ | ||
var clocktime = performanceNow()/10e3 | ||
var clocktime = performanceNow.call(performance)/10e3 | ||
var seconds = Math.floor(clocktime) | ||
@@ -22,0 +21,0 @@ var nanoseconds = (clocktime%1)*10e9 |
{ | ||
"name": "browser-process-hrtime", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Shim for process.hrtime in the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2074
27