IBR-DTNSuite  0.12
ibrcommon::TimeMeasurement Class Reference

#include <TimeMeasurement.h>

Collaboration diagram for ibrcommon::TimeMeasurement:
Collaboration graph

Public Member Functions

 TimeMeasurement ()
 
virtual ~TimeMeasurement ()
 
void start ()
 
void stop ()
 
double getMicroseconds () const
 
double getMilliseconds () const
 
void getTime (struct timespec &diff) const
 
time_t getSeconds () const
 

Static Public Member Functions

static std::ostream & format (std::ostream &stream, const double value)
 

Friends

std::ostream & operator<< (std::ostream &stream, const TimeMeasurement &measurement)
 

Detailed Description

Definition at line 41 of file TimeMeasurement.h.

Constructor & Destructor Documentation

ibrcommon::TimeMeasurement::TimeMeasurement ( )

Definition at line 32 of file TimeMeasurement.cpp.

References start(), and stop().

Here is the call graph for this function:

ibrcommon::TimeMeasurement::~TimeMeasurement ( )
virtual

Definition at line 37 of file TimeMeasurement.cpp.

Member Function Documentation

std::ostream & ibrcommon::TimeMeasurement::format ( std::ostream &  stream,
const double  value 
)
static

Definition at line 80 of file TimeMeasurement.cpp.

Referenced by ibrcommon::operator<<(), and print_summary().

double ibrcommon::TimeMeasurement::getMicroseconds ( ) const

Definition at line 64 of file TimeMeasurement.cpp.

References getTime().

Referenced by dtn::data::AgeBlock::getMicroseconds().

Here is the call graph for this function:

double ibrcommon::TimeMeasurement::getMilliseconds ( ) const

Definition at line 53 of file TimeMeasurement.cpp.

References getTime().

Referenced by main().

Here is the call graph for this function:

time_t ibrcommon::TimeMeasurement::getSeconds ( ) const
void ibrcommon::TimeMeasurement::getTime ( struct timespec &  diff) const

Definition at line 125 of file TimeMeasurement.cpp.

References ibrcommon::MonotonicClock::diff().

Referenced by ibrcommon::__compat_select(), getMicroseconds(), getMilliseconds(), and ibrcommon::operator<<().

Here is the call graph for this function:

void ibrcommon::TimeMeasurement::start ( )
void ibrcommon::TimeMeasurement::stop ( )

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const TimeMeasurement measurement 
)
friend

Definition at line 92 of file TimeMeasurement.cpp.


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