flushMicrotasks and flushTimers

True. I'm ok with adding non-periodic timer flushing, perhaps with an optional boolean parameter. I'd default to not including them though. Also, this feature can be added incrementally. Doesn't have to be part of this PR.