Public Member Functions | Private Attributes | List of all members
hpp::fcl::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 82 of file utility.h.

Constructor & Destructor Documentation

◆ BenchTimer()

hpp::fcl::BenchTimer::BenchTimer ( )

Definition at line 18 of file utility.cpp.

◆ ~BenchTimer()

hpp::fcl::BenchTimer::~BenchTimer ( )

Definition at line 33 of file utility.cpp.

Member Function Documentation

◆ getElapsedTime()

double hpp::fcl::BenchTimer::getElapsedTime ( )

get elapsed time in milli-second

Definition at line 80 of file utility.cpp.

◆ getElapsedTimeInMicroSec()

double hpp::fcl::BenchTimer::getElapsedTimeInMicroSec ( )

get elapsed time in micro-second

Definition at line 54 of file utility.cpp.

◆ getElapsedTimeInMilliSec()

double hpp::fcl::BenchTimer::getElapsedTimeInMilliSec ( )

get elapsed time in milli-second

Definition at line 72 of file utility.cpp.

◆ getElapsedTimeInSec()

double hpp::fcl::BenchTimer::getElapsedTimeInSec ( )

get elapsed time in second (same as getElapsedTime)

Definition at line 76 of file utility.cpp.

◆ start()

void hpp::fcl::BenchTimer::start ( )

start timer

Definition at line 35 of file utility.cpp.

◆ stop()

void hpp::fcl::BenchTimer::stop ( )

stop the timer

Definition at line 44 of file utility.cpp.

Member Data Documentation

◆ endCount

timeval hpp::fcl::BenchTimer::endCount
private

Definition at line 105 of file utility.h.

◆ endTimeInMicroSec

double hpp::fcl::BenchTimer::endTimeInMicroSec
private

ending time in micro-second

Definition at line 97 of file utility.h.

◆ startCount

timeval hpp::fcl::BenchTimer::startCount
private

Definition at line 104 of file utility.h.

◆ startTimeInMicroSec

double hpp::fcl::BenchTimer::startTimeInMicroSec
private

starting time in micro-second

Definition at line 96 of file utility.h.

◆ stopped

int hpp::fcl::BenchTimer::stopped
private

stop flag

Definition at line 98 of file utility.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16