#include "JobControl/JobCNode.h"#include <cstring>#include <iomanip>#include <unistd.h>#include <sys/times.h>#include "MessageService/MsgService.h"#include "MessageService/MsgFormat.h"#include "JobControl/JobCResult.h"#include "JobControl/JobCModule.h"#include "JobControl/JobCMethod.h"Go to the source code of this file.
Functions | |
| CVSID ("$Id: JobCNode.cxx,v 1.33 2002/05/14 23:29:03 rhatcher Exp $") | |
| ostream & | operator<< (ostream &os, const JobCNode &n) |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 27 of file JobCNode.cxx. 00028 {
00029 // Convert time to seconds
00030 static double ticksPerSecond = sysconf(_SC_CLK_TCK); // units used by times()
00031 double ut = (float)n.fUserTime/ticksPerSecond;
00032 double st = (float)n.fSystemTime/ticksPerSecond;
00033
00034 MsgFormat ifmt1("%-6d");
00035 MsgFormat ifmt2("%6d");
00036 MsgFormat dfmt("%8.2f");
00037
00038 string modmeth = n.fModule->GetName();
00039 modmeth += "::";
00040 modmeth += n.fMethod->GetName();
00041
00042 if (n.fFilterActive) {
00043 if (n.fFilterReverse) {
00044 os << "!";
00045 }
00046 else {
00047 os << "+";
00048 }
00049 }
00050 else {
00051 os << " ";
00052 }
00053 os.setf(ios::left); // Set format to left justified
00054 os.fill(' ');
00055 os << setw(25);
00056 os << modmeth.c_str();
00057
00058 os << " n="
00059 << ifmt1(n.fNin)
00060 << "("
00061 << ifmt2(n.fNpass)
00062 << "/"
00063 << ifmt2(n.fNfail)
00064 << ")"
00065 << " t=("
00066 << dfmt(ut)
00067 << "/"
00068 << dfmt(st)
00069 << ")";
00070 return os;
00071 }
|
1.3.9.1