code_profiler
Public Member Functions | Private Attributes | List of all members
Timer Class Reference

#include <Timer.h>

Public Member Functions

double getElapsedTime () const
 
double getElapsedTimeInMicroSec () const
 
double getElapsedTimeInMilliSec () const
 
double getElapsedTimeInSec () const
 
void printLastElapsedTime (std::string)
 
void printLastElapsedTimeMSec (std::string)
 
void start ()
 
void stop ()
 
 Timer ()
 
 ~Timer ()
 

Private Attributes

timeval end_count_
 
timeval start_count_
 
int stopped
 

Detailed Description

Definition at line 28 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Definition at line 21 of file Timer.cpp.

◆ ~Timer()

Timer::~Timer ( )

Definition at line 40 of file Timer.cpp.

Member Function Documentation

◆ getElapsedTime()

double Timer::getElapsedTime ( ) const

Definition at line 131 of file Timer.cpp.

◆ getElapsedTimeInMicroSec()

double Timer::getElapsedTimeInMicroSec ( ) const

Definition at line 83 of file Timer.cpp.

◆ getElapsedTimeInMilliSec()

double Timer::getElapsedTimeInMilliSec ( ) const

Definition at line 111 of file Timer.cpp.

◆ getElapsedTimeInSec()

double Timer::getElapsedTimeInSec ( ) const

Definition at line 121 of file Timer.cpp.

◆ printLastElapsedTime()

void Timer::printLastElapsedTime ( std::string  m)

Definition at line 136 of file Timer.cpp.

◆ printLastElapsedTimeMSec()

void Timer::printLastElapsedTimeMSec ( std::string  m)

Definition at line 142 of file Timer.cpp.

◆ start()

void Timer::start ( )

Definition at line 50 of file Timer.cpp.

◆ stop()

void Timer::stop ( )

Definition at line 66 of file Timer.cpp.

Member Data Documentation

◆ end_count_

timeval Timer::end_count_
private

Definition at line 57 of file Timer.h.

◆ start_count_

timeval Timer::start_count_
private

Definition at line 56 of file Timer.h.

◆ stopped

int Timer::stopped
private

Definition at line 50 of file Timer.h.


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