@runjuu/ts-migrate-server
Version:
A package that contains the main migration runner and spawns a TSServer process
16 lines • 442 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const perf_hooks_1 = require("perf_hooks");
class PerfTimer {
constructor() {
this.start = perf_hooks_1.performance.now();
}
elapsed() {
return perf_hooks_1.performance.now() - this.start;
}
elapsedStr() {
return `${this.elapsed().toFixed(3)}ms`;
}
}
exports.default = PerfTimer;
//# sourceMappingURL=PerfTimer.js.map