on master help sign in
use the new elm.timer.now() functionality
commit2ac45bd20b10cdc02a0dc845db692540db530192 authorMichael James <michael@michaelbjames.com> dateWed 23 Jul 2014, 14:37 (12 years ago) parent93a9d61
1 file changed+2−2
runtime/Debugger.js+2−2
runtime/Debugger.js+2−2
@@ -43,7 +43,7 @@ function debugModule(module, runtime) {
4343 var now = 0;
4444
4545 function wrapNotify(id, v) {
46− var timestep = Date.now();
46+ var timestep = runtime.timer.now();
4747
4848 if (programPaused) {
4949 // ignore async events generated while playing back
@@ -260,7 +260,7 @@ function debuggerInit(debugModule, runtime, hotSwapState /* =undefined */) {
260260 function redrawGraphics() {
261261 var main = debugModule.moduleInstance.main
262262 for (var i = main.kids.length ; i-- ; ) {
263− main.kids[i].recv(Date.now(), true, main.id);
263+ main.kids[i].recv(runtime.timer.now(), true, main.id);
264264 }
265265 }
266266