stopwatch - eisclimber/ExPresS-XR GitHub Wiki

Stopwatch

Class in ExPresSXR.Misc.Timing

Inherits from UnityEngine.MonoBehaviour

Summary

A stopwatch allowing to measure the time from a start time.

public class Stopwatch : MonoBehaviour

Fields

Name Description
INACTIVE_STOP_TIME Returned by currentStopTime if he stopwatch was not started yet.

Methods

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.

Properties

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.
⚠️ **GitHub.com Fallback** ⚠️