curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | List of all members
curfil::utils::Timer Class Reference

Used to get seconds or milliseconds passed for profiling purposes. More...

#include <utils.h>

Public Member Functions

void reset ()
 stop then start the timer
void start ()
 start the timer
void stop ()
 stop the timer
std::string format (int precision)
double getSeconds ()
double getMilliseconds ()

Detailed Description

Used to get seconds or milliseconds passed for profiling purposes.

Definition at line 42 of file utils.h.

Member Function Documentation

std::string curfil::utils::Timer::format ( int  precision)
Returns
duration in seconds or milliseconds using the precision passed
double curfil::utils::Timer::getMilliseconds ( )
Returns
duration in milliseconds
double curfil::utils::Timer::getSeconds ( )
Returns
duration in seconds

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