UNPKG

tia

Version:

Time is All (logs driven test engine with ExtJs support)

15 lines (11 loc) 309 B
export function startTimer() { return process.hrtime(); }; /** * returns time interval in milliseconds. * @param startTime - the data returned by startTimer. */ export function stopTimer(startTime: [number, number]) { const dif = process.hrtime(startTime); return dif[0] * 1000 + dif[1] / 1e6; };