stopwatch - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Misc.Timing
Inherits from UnityEngine.MonoBehaviour
A stopwatch allowing to measure the time from a start time.
public class Stopwatch : MonoBehaviour| Name | Description |
|---|---|
| INACTIVE_STOP_TIME | Returned by currentStopTime if he stopwatch was not started yet. |
| Name | Description |
|---|---|
| StartTimeMeasurement() | Starts a time measurement with the stopwatch. Updates the startTime when already running. |
| StopTimeMeasurement(bool) | Stops and resets the stopwatch, returns the final time measurement in seconds. |
| Name | Description |
|---|---|
| AutoStart | If true, will start the stopwatch during OnAwake(). |
| CurrentStopTime | How long the stopwatch is currently running or INACTIVE_STOP_TIME if not started. |
| Running | Is true if the stopwatch is currently measuring time. |
| StartTime | Stops and resets the stopwatch, returns the final time measurement. |