UNPKG

rdtsc

Version:

The most high resolution cross platform timing in NodeJs that use processor command RDTSC. Calculate performance with accuracy +/- 4 processor cycles.

11 lines (9 loc) 223 B
function objectToString(obj) { return JSON.stringify(obj, (key, value) => { if (typeof value === 'bigint') { return value + 'n'; } return value; }); } export { objectToString };