Table of Contents

Class InfiniteTimeoutTimer

Namespace
Acuit.Pinpoint.Timing
Assembly
Acuit.Pinpoint.Timing.Abstractions.dll

A ITimeoutTimer that never times out.

public class InfiniteTimeoutTimer : ITimeoutTimer
Inheritance
InfiniteTimeoutTimer
Implements
Inherited Members

Properties

Duration

Gets the total timeout duration, or InfiniteTimeSpan if the timer will never time out.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Instance

Gets the shared InfiniteTimeoutTimer instance.

public static ITimeoutTimer Instance { get; }

Property Value

ITimeoutTimer

IsExpired

Gets whether the timeout duration has expired.

public bool IsExpired { get; }

Property Value

bool

Stopwatch

Gets the underlying IStopwatch used to measure elapsed time.

public IStopwatch Stopwatch { get; }

Property Value

IStopwatch

TimeLeft

Gets the time left in the timer, or Zero if the timeout duration has expired, or InfiniteTimeSpan if the timer will never time out.

public TimeSpan TimeLeft { get; }

Property Value

TimeSpan

Methods

ThrowIfExpired()

Throws a TimeoutException if the timeout timer has expired.

public void ThrowIfExpired()

Exceptions

TimeoutException

The timeout has expired.