Public Member Functions | Private Attributes | List of all members
fcl::test::Timer Class Reference

#include <test_fcl_utility.h>

Public Member Functions

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 ()
 get elapsed time in second (same as getElapsedTime) More...
 
void start ()
 start timer More...
 
void stop ()
 stop the timer More...
 
 Timer ()
 
 ~Timer ()
 

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 77 of file test_fcl_utility.h.

Constructor & Destructor Documentation

◆ Timer()

fcl::test::Timer::Timer ( )

Definition at line 52 of file test_fcl_utility.cpp.

◆ ~Timer()

fcl::test::Timer::~Timer ( )

Definition at line 69 of file test_fcl_utility.cpp.

Member Function Documentation

◆ getElapsedTime()

double fcl::test::Timer::getElapsedTime ( )

get elapsed time in milli-second

Definition at line 129 of file test_fcl_utility.cpp.

◆ getElapsedTimeInMicroSec()

double fcl::test::Timer::getElapsedTimeInMicroSec ( )

get elapsed time in micro-second

Definition at line 97 of file test_fcl_utility.cpp.

◆ getElapsedTimeInMilliSec()

double fcl::test::Timer::getElapsedTimeInMilliSec ( )

get elapsed time in milli-second

Definition at line 117 of file test_fcl_utility.cpp.

◆ getElapsedTimeInSec()

double fcl::test::Timer::getElapsedTimeInSec ( )

get elapsed time in second (same as getElapsedTime)

Definition at line 123 of file test_fcl_utility.cpp.

◆ start()

void fcl::test::Timer::start ( )

start timer

Definition at line 75 of file test_fcl_utility.cpp.

◆ stop()

void fcl::test::Timer::stop ( )

stop the timer

Definition at line 86 of file test_fcl_utility.cpp.

Member Data Documentation

◆ endCount

timeval fcl::test::Timer::endCount
private

Definition at line 100 of file test_fcl_utility.h.

◆ endTimeInMicroSec

double fcl::test::Timer::endTimeInMicroSec
private

ending time in micro-second

Definition at line 92 of file test_fcl_utility.h.

◆ startCount

timeval fcl::test::Timer::startCount
private

Definition at line 99 of file test_fcl_utility.h.

◆ startTimeInMicroSec

double fcl::test::Timer::startTimeInMicroSec
private

starting time in micro-second

Definition at line 91 of file test_fcl_utility.h.

◆ stopped

int fcl::test::Timer::stopped
private

stop flag

Definition at line 93 of file test_fcl_utility.h.


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


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:51