Table of Contents

Interface ITimeProvider

Namespace
Terminal.Gui.Time
Assembly
Terminal.Gui.dll

Abstraction for time-related operations, allowing virtual time in tests.

public interface ITimeProvider

Properties

Now

Gets the current date/time. In tests, this can be controlled.

Methods

CreateTimer(TimeSpan, Action)

Creates a timer that fires periodically.

Delay(TimeSpan, CancellationToken)

Creates a delay. In tests, this can be instant or controlled.