Class Timer
Timer class for abstracting elapsed time from various sources.
Namespace: Unity.Simulation
Syntax
[Serializable]
public class Timer
Constructors
Timer()
Declaration
public Timer()
Fields
timerSource
The selecter timer source. Defaults to Time.timeSinceLevelLoad.
Declaration
public TimerSource timerSource
Field Value
Type | Description |
---|---|
TimerSource |
Properties
elapsedSeconds
Returns the elapsed time from the specified timer source.
Declaration
public double elapsedSeconds { get; }
Property Value
Type | Description |
---|---|
Double |