MCPcopy Create free account
hub / github.com/microsoft/SandDance / timerFlush

Function timerFlush

docs/app/js/sanddance-app.js:136664–136673  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136662 return t;
136663}
136664function timerFlush() {
136665 now(); // Get the current time, if not already set.
136666 ++frame; // Pretend we’ve set an alarm, if we haven’t already.
136667 var t = taskHead, e;
136668 while(t){
136669 if ((e = clockNow - t._time) >= 0) t._call.call(null, e);
136670 t = t._next;
136671 }
136672 --frame;
136673}
136674function wake() {
136675 clockNow = (clockLast = clock.now()) + clockSkew;
136676 frame = timeout = 0;

Callers 1

wakeFunction · 0.70

Calls 1

nowFunction · 0.70

Tested by

no test coverage detected