Comparing version 3.0.0 to 3.1.0
@@ -13,4 +13,2 @@ var S = 's' | ||
if (!unit) unit = MS | ||
switch (unit) { | ||
@@ -20,8 +18,7 @@ case S: | ||
case MS: | ||
return round(elapsed[0] * 1e3 + elapsed[1] / 1e6) | ||
case NS: | ||
return round(elapsed[0] * 1e9 + elapsed[1]) | ||
} | ||
return round(elapsed[0] * 1e3 + elapsed[1] / 1e6) | ||
} | ||
@@ -36,4 +33,2 @@ } | ||
if (!unit) unit = MS | ||
switch (unit) { | ||
@@ -40,0 +35,0 @@ case S: |
{ | ||
"name": "hirestime", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "thin wrapper around process.hrtime", | ||
@@ -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
7311
7
102