browserClock.js 253 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 module.exports = { //provide realtime clock for performance measurement now: function now() { if (typeof performance !== 'undefined' && typeof performance.now === 'function') { return performance.now(); } return Date.now(); } };