ReadonlycurrentCurrent virtual time in milliseconds
ReadonlypendingGets the number of pending scheduled tasks.
Advances the clock by the specified duration. All scheduled tasks with a time <= new current time will be executed.
Milliseconds to advance
Runs all pending tasks immediately.
Sets the clock to a specific time.
The absolute time to set
Sleeps for the specified duration using virtual time.
Milliseconds to sleep
TestClock interface for controlling time in tests