gl-store-s3.js/node_modules/aws-sdk/lib/realclock/browserClock.js

10 lines
253 B
JavaScript

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();
}
};