IBR-DTNSuite  0.10
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 32 of file TimeMeasurement.h.

Constructor & Destructor Documentation

ibrcommon::TimeMeasurement::TimeMeasurement ( )

Definition at line 40 of file TimeMeasurement.cpp.

References start(), and stop().

Here is the call graph for this function:

ibrcommon::TimeMeasurement::~TimeMeasurement ( )
virtual

Definition at line 45 of file TimeMeasurement.cpp.

Member Function Documentation

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

Definition at line 88 of file TimeMeasurement.cpp.

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

double ibrcommon::TimeMeasurement::getMicroseconds ( ) const

Definition at line 72 of file TimeMeasurement.cpp.

References getTime().

Referenced by ibrcommon::__compat_select(), and dtn::data::AgeBlock::getMicroseconds().

Here is the call graph for this function:

double ibrcommon::TimeMeasurement::getMilliseconds ( ) const

Definition at line 61 of file TimeMeasurement.cpp.

References getTime().

Referenced by dtn::net::IPNDAgent::componentRun(), and 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 133 of file TimeMeasurement.cpp.

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

Friends And Related Function Documentation

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

Definition at line 100 of file TimeMeasurement.cpp.


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