#include <opennurbs_cpp_base.h>
◆ State
Enumerator |
---|
Off | summary> The stopwatch is off. /summary> summary> The stopwatch is started and running. /summary>
|
Running | summary> The stopwatch has been started and stopped. /summary>
|
Stopped | |
◆ ON_StopWatch() [1/2]
ON_StopWatch::ON_StopWatch |
( |
| ) |
|
|
default |
◆ ~ON_StopWatch()
ON_StopWatch::~ON_StopWatch |
( |
| ) |
|
|
default |
◆ ON_StopWatch() [2/2]
◆ CurrentState()
Returns: Current state of the stopwatch.
◆ ElapsedTime()
double ON_StopWatch::ElapsedTime |
( |
| ) |
const |
Returns: The elapsed time in seconds. Remarks: If the stopwatch is running, the elapsed time is the duration from the most recent Start() to now. If the stopwatch is stopped, the elapsed time is the duration between the most recent Start() and Stop(). If the stopwatch is off, the elapsed time is zero.
◆ operator=()
◆ Reset()
void ON_StopWatch::Reset |
( |
| ) |
|
Description: The stopwatch is reset and turned off. Any previously set times are lost.
◆ Start()
void ON_StopWatch::Start |
( |
| ) |
|
Description: If the stopwatch is off or stopped, it is started. Otherwise nothing happens.
◆ Stop()
double ON_StopWatch::Stop |
( |
| ) |
|
Description: If the stopwatch is running, then it is stopped. Otherwise nothing happens. Returns: If the stopwatch was running, the elapsed time from the most recent Start(). Otherwise, 0.0 is returned.