Contents Up Previous Next

wxStopWatch

The wxStopWatch class allow you to measure time intervals.

Include files

<wx/timer.h>

See also

::wxStartTimer, ::wxGetElapsedTime, wxTimer

Members

wxStopWatch::wxStopWatch
wxStopWatch::Pause
wxStopWatch::Start
wxStopWatch::Resume
wxStopWatch::Time


wxStopWatch::wxStopWatch

wxStopWatch()

Constructor. This starts the stop watch.


wxStopWatch::Pause

void Pause()

Pauses the stop watch. Call wxStopWatch::Resume to resume time measuring again.


wxStopWatch::Start

void Start(long milliseconds = 0)

(Re)starts the stop watch with a given initial value.


wxStopWatch::Resume

void Resume()

Resumes the stop watch after having been paused with wxStopWatch::Pause.


wxStopWatch::Time

long Time()

Returns the time in milliseconds since the start (or restart) or the last call of wxStopWatch::Pause.