comparison lib/js/urweb.js @ 2187:14c45a0b6362

Basis.fromMilliseconds
author Adam Chlipala <adam@chlipala.net>
date Sun, 01 Nov 2015 11:55:01 -0500
parents e8863d9f8c59
children 61866c765485
comparison
equal deleted inserted replaced
2186:d87d72b6e299 2187:14c45a0b6362
145 return Math.round(tm / 1000000); 145 return Math.round(tm / 1000000);
146 } 146 }
147 147
148 function toMilliseconds(tm) { 148 function toMilliseconds(tm) {
149 return Math.round(tm / 1000); 149 return Math.round(tm / 1000);
150 }
151
152 function fromMilliseconds(tm) {
153 return tm * 1000;
150 } 154 }
151 155
152 function addSeconds(tm, n) { 156 function addSeconds(tm, n) {
153 return tm + n * 1000000; 157 return tm + n * 1000000;
154 } 158 }