WARPXM v1.10.0
Loading...
Searching...
No Matches
WxTimer Class Reference

Timer class which keeps accurate wall time. More...

#include <wxtimer.h>

Detailed Description

Timer class which keeps accurate wall time.

Public Member Functions

 WxTimer ()=default
 Constructor.
 
void startTimer ()
 Start the timer.
 
void stopTimer ()
 Stops the timer.
 
unsigned daysElapsed () const
 Return number of days elapsed.
 
real secondsElapsed () const
 Return number of seconds elapsed.
 
std::string timeElapsedAsString () const
 Return time elapsed as a string.
 

Constructor & Destructor Documentation

◆ WxTimer()

WxTimer::WxTimer ( )
default

Constructor.

Member Function Documentation

◆ daysElapsed()

unsigned WxTimer::daysElapsed ( ) const
inline

Return number of days elapsed.

Returns
Days elapsed

◆ secondsElapsed()

real WxTimer::secondsElapsed ( ) const
inline

Return number of seconds elapsed.

Returns
Number of seconds

◆ startTimer()

void WxTimer::startTimer ( )
inline

Start the timer.

◆ stopTimer()

void WxTimer::stopTimer ( )
inline

Stops the timer.

Updates elapsed time.

◆ timeElapsedAsString()

std::string WxTimer::timeElapsedAsString ( ) const
inline

Return time elapsed as a string.

Returns
String representing time elapsed

The documentation for this class was generated from the following file: