IBR-DTNSuite
0.8
|
#include <DTNTime.h>
Public Member Functions | |
DTNTime () | |
DTNTime (size_t seconds, size_t nanoseconds=0) | |
DTNTime (SDNV seconds, SDNV nanoseconds) | |
virtual | ~DTNTime () |
SDNV | getTimestamp () const |
void | set () |
void | operator+= (const size_t value) |
size_t | getLength () const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const dtn::data::DTNTime &obj) |
std::istream & | operator>> (std::istream &stream, dtn::data::DTNTime &obj) |
Definition at line 16 of file DTNTime.cpp.
dtn::data::DTNTime::DTNTime | ( | size_t | seconds, |
size_t | nanoseconds = 0 |
||
) |
Definition at line 22 of file DTNTime.cpp.
dtn::data::DTNTime::DTNTime | ( | SDNV | seconds, |
SDNV | nanoseconds | ||
) |
Definition at line 27 of file DTNTime.cpp.
dtn::data::DTNTime::~DTNTime | ( | ) | [virtual] |
Definition at line 32 of file DTNTime.cpp.
size_t dtn::data::DTNTime::getLength | ( | ) | const |
Definition at line 44 of file DTNTime.cpp.
References dtn::data::SDNV::getLength().
Referenced by dtn::data::CustodySignalBlock::getLength(), and dtn::data::StatusReportBlock::getLength().
SDNV dtn::data::DTNTime::getTimestamp | ( | ) | const |
Definition at line 49 of file DTNTime.cpp.
void dtn::data::DTNTime::operator+= | ( | const size_t | value | ) |
Definition at line 54 of file DTNTime.cpp.
void dtn::data::DTNTime::set | ( | ) |
set the DTNTime to the current time
Definition at line 36 of file DTNTime.cpp.
References dtn::utils::Clock::gettimeofday().
std::ostream& operator<< | ( | std::ostream & | stream, |
const dtn::data::DTNTime & | obj | ||
) | [friend] |
Definition at line 59 of file DTNTime.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
dtn::data::DTNTime & | obj | ||
) | [friend] |
Definition at line 65 of file DTNTime.cpp.