EventClock fires event on time
EventFunc does some work that needs to be done at or after the given time. After this function returns, associated work may continue
on other goroutines only if they are counted by the GoRoutineCounter
of the FakeEventClock handling this EventFunc.
FakeEventClock is one whose time does not pass implicitly but rather is explicitly set by invocations of its SetTime method
func NewFakeEventClock(t time.Time, fuzz time.Duration, r *rand.Rand) (*FakeEventClock, counter.GoRoutineCounter)
NewFakeEventClock constructor. The given `r *rand.Rand` must henceforth not be used for any other purpose. If `r` is nil then a fresh one will be constructed, seeded with the current real time. The clientWG can be `nil` and if not is used to let Run know about additional work that has to complete before time can advance.
EventAfterDuration schedules the given function to be invoked once the given duration has passed.
EventAfterTime schedules the given function to be invoked once the given time has arrived.
GetNextTime returns the next time at which there is work scheduled, and a bool indicating whether there is any such time
Run runs all the events scheduled, and all the events they schedule, and so on, until there are none scheduled or the limit is not nil and the next time would exceed the limit. The clientWG given in the constructor gates each advance of time.
SetTime sets the time and runs to completion all events that should be started by the given time --- including any further events they schedule
RealEventClock fires event on real world time
EventAfterDuration schedules an EventFunc
EventAfterTime schedules an EventFunc