Table of Contents

Class SystemTimeProvider

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

Real time provider using DateTime.Now and Task.Delay for production use.

public class SystemTimeProvider : ITimeProvider
Inheritance
SystemTimeProvider
Implements
Inherited Members

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.