Class RaceTimer
- Namespace
- LibreRally.Race
- Assembly
- LibreRally.dll
A timer component used to track race duration.
[ComponentCategory("LibreRally")]
public class RaceTimer : SyncScript, IIdentifiable, ICollectorHolder
- Inheritance
-
SyncScriptRaceTimer
- Implements
-
IIdentifiableICollectorHolder
- Inherited Members
Properties
ElapsedSeconds
Gets the elapsed time in seconds.
public double ElapsedSeconds { get; }
Property Value
IsRunning
Gets a value indicating whether the timer is currently running.
public bool IsRunning { get; }
Property Value
Methods
GetTimeString()
Gets the formatted elapsed time as a string (MM:SS.cs).
public string GetTimeString()
Returns
- string
A string representing the elapsed time.
ResetTimer()
Resets the timer to zero and stops it.
public void ResetTimer()
Start()
Initialises the timer component before the race begins.
public override void Start()
StartTimer()
Starts the timer.
public void StartTimer()
StopTimer()
Stops the timer.
public void StopTimer()
Update()
Advances the elapsed race time while the timer is running.
public override void Update()