Show / Hide Table of Contents

Interface ITimer

Namespace: Experior.Interfaces
Assembly: Experior.Interfaces.dll
Syntax
public interface ITimer

Properties

AutoReset

if AutoReset is true the timer will start again once it has elapsed.

Declaration
bool AutoReset { get; set; }
Property Value
Type Description
System.Boolean

true if [auto reset]; otherwise, false.

Running

If true, then the timer is running.

Declaration
bool Running { get; }
Property Value
Type Description
System.Boolean

true if running; otherwise, false.

Timeout

Set a new time in seconds. Only possible when the timer is not running.

Declaration
float Timeout { get; set; }
Property Value
Type Description
System.Single

The timeout

Exceptions
Type Condition
System.Exception

Timer is running! Timeout can not be set when the timer is running.

TimeRemaining

Time remaining

Declaration
double TimeRemaining { get; }
Property Value
Type Description
System.Double

The time remaining.

Methods

Dispose()

Dispose the timer

Declaration
bool Dispose()
Returns
Type Description
System.Boolean

Reset()

Reset the timer

Declaration
void Reset()

Start()

Start the timer

Declaration
void Start()

Stop()

Stop the timer

Declaration
void Stop()

Events

Disposed

Declaration
event EventHandler Disposed
Event Type
Type Description
System.EventHandler
Back to top Generated by DocFX