diff options
author | Adam Chlipala <adam@chlipala.net> | 2015-11-01 11:55:01 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2015-11-01 11:55:01 -0500 |
commit | 3cf49898acbf6701b04a1de4938241f1009c5e5a (patch) | |
tree | 029b7822e16333e345fa5948fb57c9eb8846afa7 /lib/js | |
parent | 0746eb28c54cb2ba778150e9fd8d0c399f7dcd14 (diff) |
Basis.fromMilliseconds
Diffstat (limited to 'lib/js')
-rw-r--r-- | lib/js/urweb.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 335cb525..ac4e4c9e 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -149,6 +149,10 @@ function toMilliseconds(tm) { return Math.round(tm / 1000); } +function fromMilliseconds(tm) { + return tm * 1000; +} + function addSeconds(tm, n) { return tm + n * 1000000; } |