Struct Stopwatch
- Namespace
- Luny /
- Assembly
- Luny.dll
A lightweight readonly struct that records a point in time to measure duration.
public readonly struct Stopwatch
Expand Details ...
- Inherited Members
Methods
ElapsedHours(Double)
Returns the elapsed time in hours since the timestamp was started.
public Double ElapsedHours(Double now)
Parameters
| Type | Name | Description |
|---|---|---|
now |
Returns
- Double
ElapsedMilliseconds(Double)
Returns the elapsed time in milliseconds since the timestamp was started.
public Double ElapsedMilliseconds(Double now)
Parameters
| Type | Name | Description |
|---|---|---|
now |
Returns
- Double
ElapsedMinutes(Double)
Returns the elapsed time in minutes since the timestamp was started.
public Double ElapsedMinutes(Double now)
Parameters
| Type | Name | Description |
|---|---|---|
now |
Returns
- Double
ElapsedSeconds(Double)
Returns the elapsed time in seconds since the timestamp was started.
public Double ElapsedSeconds(Double now)
Parameters
| Type | Name | Description |
|---|---|---|
now |
Returns
- Double
Start(Double)
Starts measuring time from the provided start time.
public static Stopwatch Start(Double now)
Parameters
| Type | Name | Description |
|---|---|---|
now |
Returns
ToString()
public override String ToString()
Returns
- String