ug4
ug::CuckooClock Class Reference

#include <stopwatch.h>

Public Member Functions

double cuckoo ()
 returns total time (in seconds) More...
 
 CuckooClock ()
 
void tic ()
 
double toc ()
 returns time since last tic More...
 

Protected Attributes

clock_t m_tdone
 
clock_t m_tlaunch
 
clock_t m_ttotal
 

Constructor & Destructor Documentation

◆ CuckooClock()

ug::CuckooClock::CuckooClock ( )
inline

Member Function Documentation

◆ cuckoo()

double ug::CuckooClock::cuckoo ( )
inline

returns total time (in seconds)

References m_ttotal.

◆ tic()

void ug::CuckooClock::tic ( )
inline

References m_tlaunch.

◆ toc()

double ug::CuckooClock::toc ( )
inline

returns time since last tic

References m_tdone, m_tlaunch, and m_ttotal.

Member Data Documentation

◆ m_tdone

clock_t ug::CuckooClock::m_tdone
protected

Referenced by toc().

◆ m_tlaunch

clock_t ug::CuckooClock::m_tlaunch
protected

Referenced by tic(), and toc().

◆ m_ttotal

clock_t ug::CuckooClock::m_ttotal
protected

Referenced by cuckoo(), and toc().


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