Public Member Functions | Private Attributes | List of all members
coal::BenchTimer Class Reference

#include <utility.h>

Public Member Functions

 BenchTimer ()
 
double getElapsedTime ()
 get elapsed time in milli-second More...
 
double getElapsedTimeInMicroSec ()
 get elapsed time in micro-second More...
 
double getElapsedTimeInMilliSec ()
 get elapsed time in milli-second More...
 
double getElapsedTimeInSec ()
 
void start ()
 start timer More...
 
void stop ()
 stop the timer More...
 
 ~BenchTimer ()
 

Private Attributes

timeval endCount
 
double endTimeInMicroSec
 ending time in micro-second More...
 
timeval startCount
 
double startTimeInMicroSec
 starting time in micro-second More...
 
int stopped
 stop flag More...
 

Detailed Description

Definition at line 87 of file utility.h.

Constructor & Destructor Documentation

◆ BenchTimer()

coal::BenchTimer::BenchTimer ( )

Definition at line 19 of file utility.cpp.

◆ ~BenchTimer()

coal::BenchTimer::~BenchTimer ( )

Definition at line 34 of file utility.cpp.

Member Function Documentation

◆ getElapsedTime()

double coal::BenchTimer::getElapsedTime ( )

get elapsed time in milli-second

Definition at line 81 of file utility.cpp.

◆ getElapsedTimeInMicroSec()

double coal::BenchTimer::getElapsedTimeInMicroSec ( )

get elapsed time in micro-second

Definition at line 55 of file utility.cpp.

◆ getElapsedTimeInMilliSec()

double coal::BenchTimer::getElapsedTimeInMilliSec ( )

get elapsed time in milli-second

Definition at line 73 of file utility.cpp.

◆ getElapsedTimeInSec()

double coal::BenchTimer::getElapsedTimeInSec ( )

get elapsed time in second (same as getElapsedTime)

Definition at line 77 of file utility.cpp.

◆ start()

void coal::BenchTimer::start ( )

start timer

Definition at line 36 of file utility.cpp.

◆ stop()

void coal::BenchTimer::stop ( )

stop the timer

Definition at line 45 of file utility.cpp.

Member Data Documentation

◆ endCount

timeval coal::BenchTimer::endCount
private

Definition at line 110 of file utility.h.

◆ endTimeInMicroSec

double coal::BenchTimer::endTimeInMicroSec
private

ending time in micro-second

Definition at line 102 of file utility.h.

◆ startCount

timeval coal::BenchTimer::startCount
private

Definition at line 109 of file utility.h.

◆ startTimeInMicroSec

double coal::BenchTimer::startTimeInMicroSec
private

starting time in micro-second

Definition at line 101 of file utility.h.

◆ stopped

int coal::BenchTimer::stopped
private

stop flag

Definition at line 103 of file utility.h.


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


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00