@@ -180,14 +180,13 @@ function debugModule(module, runtime) {
180 snapshots = snapshots.slice(0, lastSnapshotPosition + 1);
180 snapshots = snapshots.slice(0, lastSnapshotPosition + 1);
182 var lastEventTime = recordedEvents[position-1].timestep;
182 var lastEventTime = recordedEvents[position-1].timestep;
183− runtime.timer.setDelay(Date.now() - lastEventTime);
183+ var scrubTime = runtime.timer.now() - lastEventTime;
184+ runtime.timer.addDelay(scrubTime);
185 recordedEvents = recordedEvents.slice(0, position);
186 recordedEvents = recordedEvents.slice(0, position);
186 tracePath.clearTracesAfter(position);
187 tracePath.clearTracesAfter(position);
187 eventCounter = position;
188 eventCounter = position;
188− executeCallbacks(asyncCallbacks, false, lastEventTime);
189+ executeCallbacks(asyncCallbacks, false);
190− runtime.timer.setDelay(0);
192 tracePath.startRecording();
191 tracePath.startRecording();
@@ -491,12 +490,12 @@ function tracePathInit(runtime, signalGraphMain) {
494−function executeCallbacks(callbacks, reexecute, previousTime /* =undefined */) {
493+function executeCallbacks(callbacks, reexecute) {
495 callbacks.forEach(function(timer) {
494 callbacks.forEach(function(timer) {
496 if (reexecute || !timer.executed) {
495 if (reexecute || !timer.executed) {
497 var func = timer.func;
496 var func = timer.func;
498 timer.executed = true;
497 timer.executed = true;
499− func(previousTime);
498+ func();