()
| 4084 | } |
| 4085 | |
| 4086 | function timerFlush() { |
| 4087 | now(); // Get the current time, if not already set. |
| 4088 | ++frame; // Pretend we’ve set an alarm, if we haven’t already. |
| 4089 | var t = taskHead, e; |
| 4090 | while (t) { |
| 4091 | if ((e = clockNow - t._time) >= 0) t._call.call(undefined, e); |
| 4092 | t = t._next; |
| 4093 | } |
| 4094 | --frame; |
| 4095 | } |
| 4096 | |
| 4097 | function wake() { |
| 4098 | clockNow = (clockLast = clock.now()) + clockSkew; |