UNPKG

@biorate/rdkafka

Version:
8 lines (7 loc) 182 B
export const timeDiff = () => { const startTime = process.hrtime(); return () => { const diff = process.hrtime(startTime); return diff[0] * 1e3 + diff[1] * 1e-6; }; };