View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

stopwatch.h
Go to the documentation of this file.
1#ifndef STOPWATCH_H
2#define STOPWATCH_H
3
4#include "export.h"
5
6#include <string>
7#include <chrono>
8
9namespace vistle {
10
11namespace chrono = std::chrono;
12
14public:
15 typedef chrono::high_resolution_clock clock_type;
16
17 static double time();
18};
19
21public:
22 typedef chrono::high_resolution_clock clock_type;
23
24 StopWatch(const char *description);
25 ~StopWatch();
26
27private:
28 std::string m_description;
29 clock_type::time_point m_start;
30};
31
32} // namespace vistle
33
34#endif
Definition: stopwatch.h:13
chrono::high_resolution_clock clock_type
Definition: stopwatch.h:15
Definition: stopwatch.h:20
chrono::high_resolution_clock clock_type
Definition: stopwatch.h:22
Definition: allobjects.cpp:30
#define V_UTILEXPORT
Definition: export.h:19