Search Results for

    Show / Hide Table of Contents

    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

    | Edit this page View Source

    HighResMonotonicClock

    TBD

    Declaration
    TimeSpan HighResMonotonicClock { get; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    MonotonicClock

    TBD

    Declaration
    TimeSpan MonotonicClock { get; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    Now

    Gets the scheduler's notion of current time.

    Declaration
    DateTimeOffset Now { get; }
    Property Value
    Type Description
    DateTimeOffset

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET