6 lines
191 B
JavaScript
6 lines
191 B
JavaScript
|
/* globals performance */
|
||
|
module.exports =
|
||
|
(typeof performance !== 'undefined' && performance.now)
|
||
|
? function () { return performance.now() }
|
||
|
: function () { return +(new Date()) }
|