NeoPZ
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ClockTimer Class Reference

#include <clock_timer.h>

Public Member Functions

 ClockTimer ()
 
void start ()
 
void stop ()
 
double getUnits ()
 
std::string getTime ()
 

Private Member Functions

std::string double_to_string (double dbl)
 

Private Attributes

timeval t1
 
double elapsed
 

Detailed Description

Definition at line 5 of file clock_timer.h.

Constructor & Destructor Documentation

◆ ClockTimer()

ClockTimer::ClockTimer ( )
inline

Definition at line 8 of file clock_timer.h.

Member Function Documentation

◆ double_to_string()

std::string ClockTimer::double_to_string ( double  dbl)
inlineprivate

Definition at line 34 of file clock_timer.h.

Referenced by getTime().

◆ getTime()

std::string ClockTimer::getTime ( )
inline

Definition at line 23 of file clock_timer.h.

References double_to_string(), and elapsed.

◆ getUnits()

double ClockTimer::getUnits ( )
inline

Definition at line 21 of file clock_timer.h.

References elapsed.

◆ start()

void ClockTimer::start ( )
inline

Definition at line 10 of file clock_timer.h.

References t1.

◆ stop()

void ClockTimer::stop ( )
inline

Definition at line 14 of file clock_timer.h.

References elapsed, and t1.

Member Data Documentation

◆ elapsed

double ClockTimer::elapsed
private

Definition at line 32 of file clock_timer.h.

Referenced by getTime(), getUnits(), and stop().

◆ t1

timeval ClockTimer::t1
private

Definition at line 31 of file clock_timer.h.

Referenced by start(), and stop().


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