performancenow
Simple performance.now()
polyfill for old browsers and node.
Installation
$ npm install performancenow
API
Make sure to import performancenow
module in your application entrypoint, it
will make a time stamp to measure against on every subsequent call.
;
Then just import as a usual module wherever you need it.
; let timestamp = ;// => 15.02
To polyfill performance.now()
function.
performance = performance || {};performancenow = performancenow || ;
Running tests
$ npm install$ npm test