Interface ITimeProvider
Time provider used by the scheduler to obtain the current time.
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface ITimeProvider
Remarks
Intended to be customizable to we can virtualize time for testing purposes.
In the future we will drop this in favor of the time provider built into .NET 8 and later.
Properties
| Improve this Doc View SourceHighResMonotonicClock
TBD
Declaration
TimeSpan HighResMonotonicClock { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
MonotonicClock
TBD
Declaration
TimeSpan MonotonicClock { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Now
Gets the scheduler's notion of current time.
Declaration
DateTimeOffset Now { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |