Dynalib Utils
Public Member Functions | List of all members
Stopwatch Class Reference

#include <Stopwatch.h>

Public Member Functions

 Stopwatch (bool useHighRes=false)
 
Stopwatchstart ()
 
Stopwatchstop ()
 
Stopwatchrestart ()
 
long getElapsedTime ()
 
long getLastInterval ()
 
Stopwatchreset ()
 
long getStartTime ()
 
long getStopTime ()
 
long getTotalPaused ()
 
bool isRunning ()
 
string toString (string msg)
 
string toString ()
 
void printMessage (string msg)
 
void printMessage ()
 

Constructor & Destructor Documentation

◆ Stopwatch()

Stopwatch::Stopwatch ( bool  useHighRes = false)
explicit

Member Function Documentation

◆ getElapsedTime()

long Stopwatch::getElapsedTime ( )

◆ getLastInterval()

long Stopwatch::getLastInterval ( )

◆ getStartTime()

long Stopwatch::getStartTime ( )
inline

◆ getStopTime()

long Stopwatch::getStopTime ( )
inline

◆ getTotalPaused()

long Stopwatch::getTotalPaused ( )
inline

◆ isRunning()

bool Stopwatch::isRunning ( )
inline

◆ printMessage() [1/2]

void Stopwatch::printMessage ( string  msg)

◆ printMessage() [2/2]

void Stopwatch::printMessage ( )

◆ reset()

Stopwatch * Stopwatch::reset ( )

◆ restart()

Stopwatch * Stopwatch::restart ( )

◆ start()

Stopwatch * Stopwatch::start ( )

◆ stop()

Stopwatch * Stopwatch::stop ( )

◆ toString() [1/2]

string Stopwatch::toString ( string  msg)

◆ toString() [2/2]

string Stopwatch::toString ( )

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