UNPKG
@plotly/regl
Version:
latest (2.1.2)
2.1.2
2.1.1
regl is a fast functional WebGL framework.
plotly.github.io/regl
plotly/regl
@plotly/regl
/
lib
/
util
/
clock.js
6 lines
(5 loc)
•
191 B
JavaScript
View Raw
1
2
3
4
5
6
/* globals performance */
module
.
exports
= (
typeof
performance !==
'undefined'
&& performance.
now
) ?
function
(
) {
return
performance.
now
() } :
function
(
) {
return
+(
new
Date
()) }