asdf-games/node_modules/right-now/browser.js

8 lines
174 B
JavaScript

module.exports =
global.performance &&
global.performance.now ? function now() {
return performance.now()
} : Date.now || function now() {
return +new Date
}