tia
Version:
Time is All (logs driven test engine with ExtJs support)
18 lines • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function startTimer() {
return process.hrtime();
}
exports.startTimer = startTimer;
;
/**
* returns time interval in milliseconds.
* @param startTime - the data returned by startTimer.
*/
function stopTimer(startTime) {
const dif = process.hrtime(startTime);
return dif[0] * 1000 + dif[1] / 1e6;
}
exports.stopTimer = stopTimer;
;
//# sourceMappingURL=time-utils.js.map