UNPKG
regl
Version:
latest (2.1.1)
2.1.1
2.1.0
2.0.1
2.0.0
1.7.0
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.13
1.3.12
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.1
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.11.0
0.10.0
0.9.0
0.8.0
0.7.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
0.0.0
regl is a fast functional WebGL framework.
regl-project.github.io/regl
regl-project/regl
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
()) }