#include "Context/TimeStamp.h"
#include <iostream>
#include <cmath>
#include <string>
#include <algorithm>
#include <limits.h>
#include <cstring>
#include <cstdio>
#include <sys/time.h>
Include dependency graph for TimeStamp.cc:
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const TimeStamp &ts) |
Variables | |
const int | kNsPerSec = 1000000000 |
std::ostream& operator<< | ( | std::ostream & | os, | |
const TimeStamp & | ts | |||
) |
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 }
const int kNsPerSec = 1000000000 |
Definition at line 40 of file TimeStamp.cc.