CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::TimeKeeper Class Reference

#include <cxTimeKeeper.h>

Public Member Functions

 TimeKeeper ()
 
void printElapsedSeconds (QString text="Elapsed time")
 
void printElapsedms (QString text="Elapsed") const
 
QString getElapsedSecondsAsString () const
 
int getElapsedms () const
 
void reset ()
 

Detailed Description

Helper class for measuring and printing the time spent in code.

Date
Nov 06, 2012
Author
christiana

Definition at line 30 of file cxTimeKeeper.h.

Constructor & Destructor Documentation

cx::TimeKeeper::TimeKeeper ( )

Definition at line 20 of file cxTimeKeeper.cpp.

Member Function Documentation

int cx::TimeKeeper::getElapsedms ( ) const

Definition at line 36 of file cxTimeKeeper.cpp.

QString cx::TimeKeeper::getElapsedSecondsAsString ( ) const

Definition at line 31 of file cxTimeKeeper.cpp.

void cx::TimeKeeper::printElapsedms ( QString  text = "Elapsed") const

Definition at line 26 of file cxTimeKeeper.cpp.

void cx::TimeKeeper::printElapsedSeconds ( QString  text = "Elapsed time")

Definition at line 22 of file cxTimeKeeper.cpp.

void cx::TimeKeeper::reset ( )

Definition at line 41 of file cxTimeKeeper.cpp.


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