A simple stopwatch interface to measure elapsed time.
Properties
- Duration elapsed
-
read-onlyReturns the
elapsedTicks
counter converted to aDuration
. - int elapsedMicroseconds
-
read-onlyReturns the
elapsedTicks
counter converted to microseconds. - int elapsedMilliseconds
-
read-onlyReturns the
elapsedTicks
counter converted to milliseconds. - int elapsedTicks
-
read-onlyReturns the elapsed number of clock ticks since calling
start
while theStopwatch
is running. - int frequency
-
read-onlyFrequency of the elapsed counter in Hz.
- bool isRunning
-
read-onlyReturns wether the
StopWatch
is currently running.