Interface IClock
An interface describing time handling functions for timeouts.
public interface IClock
Properties
Now
Gets the current date and time values.
DateTime Now { get; }
Property Value
Methods
IsNowBefore(DateTime)
Gets a value indicating whether the current date and time is before the specified date and time.
bool IsNowBefore(DateTime otherDateTime)
Parameters
otherDateTime
DateTimeThe date and time values to compare the current date and time values to.
Returns
LaterBy(TimeSpan)
Gets the DateTime at a specified offset in the future.
DateTime LaterBy(TimeSpan delay)
Parameters
delay
TimeSpanThe offset to use.