UNPKG
planck-js
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.0
1.0.6
0.4.0-alpha.1
0.3.31
0.3.30
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.23
0.3.22
0.3.21
0.3.20
0.3.19
0.3.18
0.3.17
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.3.0-rc.2
0.3.0-rc.1
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.1.45
0.1.44
0.1.43
0.1.42
0.1.41
0.1.39
0.1.38
0.1.37
0.1.36
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.29
0.1.22
0.1.20
0.1.16
0.1.15
0.1.13
0.1.3
0.0.4
0.0.2
2D physics engine for JavaScript/HTML5 game development
shakiba.me/planck.js
shakiba/planck.js
planck-js
/
lib
/
util
/
Timer.js
8 lines
(6 loc)
•
127 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
.
now
=
function
(
) {
return
Date
.
now
(); }
module
.
exports
.
diff
=
function
(
time
) {
return
Date
.
now
() - time; }