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