Class DateTimeOffsetNowTimeProvider
The default ITimeProvider implementation for Akka.NET when not testing.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
[Obsolete("This class will be removed in Akka.NET v1.6.0 - use the IScheduler instead.")]
public class DateTimeOffsetNowTimeProvider : IDateTimeOffsetNowTimeProvider, ITimeProvider
Properties
| Edit this page View SourceHighResMonotonicClock
Gets the elapsed time since system startup using a high-resolution monotonic clock, suitable for precise interval measurements.
Declaration
public TimeSpan HighResMonotonicClock { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Instance
Declaration
public static DateTimeOffsetNowTimeProvider Instance { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffsetNowTimeProvider |
MonotonicClock
Gets the elapsed time since system startup using a monotonic clock that is not affected by wall-clock adjustments.
Declaration
public TimeSpan MonotonicClock { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Now
Gets the scheduler's notion of current time.
Declaration
public DateTimeOffset Now { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
Edit this page