Interface IGorgonTimer
Functionality to measure an interval of time.
Namespace: Gorgon.Timing
Assembly: Gorgon.Core.dll
Syntax
public interface IGorgonTimer
Remarks
Timers can be used to set up events that occur during a predefined time period, and/or can be used to measure the amount of time that operation takes to complete.
A timer is closely tied to the operating system, thus a concrete class will be provided by an operating system specific assembly.
Properties
| Edit this page View SourceDays
Property to return the number of days elapsed since the timer was started.
Declaration
double Days { get; }
Property Value
Type | Description |
---|---|
double |
Hours
Property to return the number of hours elapsed since the timer was started.
Declaration
double Hours { get; }
Property Value
Type | Description |
---|---|
double |
IsHighResolution
Property to return whether this timer has a resolution of less than 1 millisecond or not.
Declaration
bool IsHighResolution { get; }
Property Value
Type | Description |
---|---|
bool |
Microseconds
Property to return the number of microseconds elapsed since the timer was started.
Declaration
double Microseconds { get; }
Property Value
Type | Description |
---|---|
double |
Milliseconds
Property to return the number of milliseconds elapsed since the timer was started.
Declaration
double Milliseconds { get; }
Property Value
Type | Description |
---|---|
double |
Minutes
Property to return the number of minutes elapsed since the timer was started.
Declaration
double Minutes { get; }
Property Value
Type | Description |
---|---|
double |
Seconds
Property to return the number of seconds elapsed since the timer was started.
Declaration
double Seconds { get; }
Property Value
Type | Description |
---|---|
double |
Ticks
Property to return the number of ticks since the timer was started.
Declaration
long Ticks { get; }
Property Value
Type | Description |
---|---|
long |
Methods
| Edit this page View SourceReset()
Function to reset the timer.
Declaration
void Reset()