Functions
test_execmon.cxx File Reference
#include "WireCellUtil/Testing.h"
#include "WireCellUtil/ExecMon.h"
#include <unistd.h>
#include <iostream>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 13 of file test_execmon.cxx.

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 }
QTextStream & endl(QTextStream &s)