IBR-DTNSuite  0.12
ibrcommon::MonotonicClock Class Reference

#include <MonotonicClock.h>

Collaboration diagram for ibrcommon::MonotonicClock:
Collaboration graph

Public Member Functions

 MonotonicClock ()
 
virtual ~MonotonicClock ()
 
void get (struct timeval &tv) const
 
void get (struct timespec &ts) const
 
time_t getSeconds () const
 

Static Public Member Functions

static void gettime (struct timeval &tv)
 
static void gettime (struct timespec &ts)
 
static void diff (const struct timespec &start, const struct timespec &end, struct timespec &diff)
 

Detailed Description

Definition at line 26 of file MonotonicClock.h.

Constructor & Destructor Documentation

ibrcommon::MonotonicClock::MonotonicClock ( )

Definition at line 24 of file MonotonicClock.cpp.

References gettime().

Here is the call graph for this function:

ibrcommon::MonotonicClock::~MonotonicClock ( )
virtual

Definition at line 29 of file MonotonicClock.cpp.

Member Function Documentation

void ibrcommon::MonotonicClock::diff ( const struct timespec &  start,
const struct timespec &  end,
struct timespec &  diff 
)
static
void ibrcommon::MonotonicClock::get ( struct timeval &  tv) const

Definition at line 33 of file MonotonicClock.cpp.

void ibrcommon::MonotonicClock::get ( struct timespec &  ts) const

Definition at line 42 of file MonotonicClock.cpp.

References diff(), and gettime().

Here is the call graph for this function:

time_t ibrcommon::MonotonicClock::getSeconds ( ) const

Definition at line 49 of file MonotonicClock.cpp.

Referenced by dtn::utils::Clock::getMonotonicTimestamp().

void ibrcommon::MonotonicClock::gettime ( struct timeval &  tv)
static
void ibrcommon::MonotonicClock::gettime ( struct timespec &  ts)
static

Definition at line 87 of file MonotonicClock.cpp.


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