Utility timing function. Given a callback, it times the callback and returns its runtime in milliseconds. It uses performance.now() to do this. If performance.now() is not available, it returns null.
performance.now()
callback to time
Utility timing function. Given a callback, it times the callback and returns its runtime in milliseconds. It uses
performance.now()to do this. Ifperformance.now()is not available, it returns null.