2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-05-13 16:16:32 +00:00
2019-05-08 12:19:12 +01:00

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