Open tbranyen opened 7 years ago
In Node you can achieve precise high-resolution time signatures useful for performance using process.hrtime: https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_hrtime_time
process.hrtime
In browsers you can use: http://caniuse.com/#search=performance.now which also achieves a high resolution timestamp.
The fallback could work using the existing implementation.
Any thoughts on this @kmudrick?
Yes! I will add that - thanks @tbranyen
I wonder how testable either of those are. Hmm.
In Node you can achieve precise high-resolution time signatures useful for performance using
process.hrtime
: https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_hrtime_timeIn browsers you can use: http://caniuse.com/#search=performance.now which also achieves a high resolution timestamp.
The fallback could work using the existing implementation.
Any thoughts on this @kmudrick?