test_execmon.cxx
Go to the documentation of this file.
1 /** Test the WireCellUtil/Testing helpers.
2  */
3 
4 #include "WireCellUtil/Testing.h"
5 #include "WireCellUtil/ExecMon.h"
6 
7 #include <unistd.h> // fixme: maybe a more modern sleep() is preferable?
8 #include <iostream>
9 
10 using namespace WireCell;
11 using namespace std;
12 
13 int main(int argc, char** argv)
14 {
15  ExecMon em("test_testing");
16  cout << em("sleeping") << endl;;
17  sleep(1);
18  cout << em("awake") << endl;
19 
20  cout << em.summary() << endl;
21  return 0;
22 }
STL namespace.
int main(int argc, char **argv)
Definition: Main.h:22
std::string summary() const
Return summary up to now.
Definition: ExecMon.cxx:21
QTextStream & endl(QTextStream &s)