The scaling factor to apply to the passage of time.
The underlying clock to scale the time of.
Returns a future that completes after the specified duration has elapsed or if an error is encountered.
Returns a future that completes after the specified duration has elapsed or if an error is encountered.
The amount of time that must pass before the returned future completes.
The execution context to perform wait operations with.
The scaling factor to apply to the passage of time.
Returns the amount of time that has passed since 12:00 am January 1 1970 GMT.
Returns the amount of time that has passed since 12:00 am January 1 1970 GMT.
Attempts to wait for the specified duration, completing after it has elapsed or if an error is encountered.
Attempts to wait for the specified duration, completing after it has elapsed or if an error is encountered.
The amount of time to block the calling thread.
Returns the amount of time that has passed since an arbitrary point in history.
Returns the amount of time that has passed since an arbitrary point in history. The results of this method are only useful when compared against the result of other invocations of this method.
A clock that scales the progression of time reported by another clock.
The provided
factor
maps time from the underlying clock into time for the scaled clock. For example: a scale of2.0
will result in the scaled clock reporting the passage of time twice as quickly as the underlying clock, since every second of real time equates to two seconds of scaled time. Conversely, a scale of0.5
will result in the scaled clock reporting the passage of time half as quickly as the underlying clock.The scaling factor to apply to the passage of time.
The underlying clock to scale the time of.