#include <ctime>
#include <iosfwd>
Include dependency graph for TimeStamp.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | TimeStamp |
Encapsulate the seconds and ns since EPOCH. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const TimeStamp &vldts) |
bool | operator== (const TimeStamp &lhs, const TimeStamp &rhs) |
bool | operator!= (const TimeStamp &lhs, const TimeStamp &rhs) |
bool | operator< (const TimeStamp &lhs, const TimeStamp &rhs) |
bool | operator<= (const TimeStamp &lhs, const TimeStamp &rhs) |
bool | operator> (const TimeStamp &lhs, const TimeStamp &rhs) |
bool | operator>= (const TimeStamp &lhs, const TimeStamp &rhs) |
TimeStamp | operator- (const TimeStamp &lhs, const TimeStamp &rhs) |
std::ostream& operator<< | ( | std::ostream & | os, | |
const TimeStamp & | vldts | |||
) |
Definition at line 43 of file TimeStamp.cc.
00044 { 00045 if (os.good()) { 00046 if (os.tie()) os.tie()->flush(); // instead of opfx 00047 os << ts.AsString("c"); 00048 } 00049 // instead of os.osfx() 00050 if (os.flags() & std::ios::unitbuf) os.flush(); 00051 return os; 00052 }
Definition at line 316 of file TimeStamp.h.
00317 { 00318 return TimeStamp(lhs.GetSec() - rhs.GetSec(), 00319 lhs.GetNanoSec() - rhs.GetNanoSec()); 00320 }