@opencreek/ext
Advanced tools
Comparing version 1.9.0--canary.15.1830310970.0 to 1.9.0--canary.15.3540470450.0
@@ -11,2 +11,3 @@ declare type Task = { | ||
stop(): void; | ||
getTotalElapsedTimeInMs(): number; | ||
toString(): string; | ||
@@ -13,0 +14,0 @@ } |
@@ -31,2 +31,5 @@ "use strict"; | ||
} | ||
getTotalElapsedTimeInMs() { | ||
return this.tasks.sumOf((it) => { var _a; return (_a = it.elapsed) !== null && _a !== void 0 ? _a : 0; }); | ||
} | ||
toString() { | ||
@@ -44,3 +47,3 @@ const table = [ | ||
name: "Total", | ||
elapsed: this.tasks.sumOf((it) => { var _a; return (_a = it.elapsed) !== null && _a !== void 0 ? _a : 0; }) + "ms", | ||
elapsed: this.getTotalElapsedTimeInMs() + "ms", | ||
}, | ||
@@ -47,0 +50,0 @@ ]; |
{ | ||
"name": "@opencreek/ext", | ||
"version": "1.9.0--canary.15.1830310970.0", | ||
"version": "1.9.0--canary.15.3540470450.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -41,2 +41,6 @@ import { tableToString } from "./table" | ||
getTotalElapsedTimeInMs(): number { | ||
return this.tasks.sumOf((it) => it.elapsed ?? 0) | ||
} | ||
toString(): string { | ||
@@ -54,3 +58,3 @@ const table = [ | ||
name: "Total", | ||
elapsed: this.tasks.sumOf((it) => it.elapsed ?? 0) + "ms", | ||
elapsed: this.getTotalElapsedTimeInMs() + "ms", | ||
}, | ||
@@ -57,0 +61,0 @@ ] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
74880
1263