| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

TimeStamp.cc File Reference

#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

Function Documentation

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 }


Variable Documentation

const int kNsPerSec = 1000000000

Definition at line 40 of file TimeStamp.cc.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:15:31 2011 for Context by doxygen 1.4.7