Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
wire-cell-build
util
test
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
}
WireCell::ExecMon
Definition:
ExecMon.h:21
ExecMon.h
std
STL namespace.
freeze_graph.argv
argv
Definition:
freeze_graph.py:218
main
int main(int argc, char **argv)
Definition:
test_execmon.cxx:13
Testing.h
WireCell
Definition:
Main.h:22
test_gen_rays_pdsp.argc
argc
Definition:
test_gen_rays_pdsp.py:6
WireCell::ExecMon::summary
std::string summary() const
Return summary up to now.
Definition:
ExecMon.cxx:21
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11