Definition at line 32 of file parser_perf.cpp.
◆ scoped_timer()
scoped_timer::scoped_timer |
( |
std::string | i | ) |
|
|
inline |
Definition at line 34 of file parser_perf.cpp.
34 : m_id(i),m_start(std::chrono::steady_clock::now()) {
35 std::cout << "Clock " << i << ": ";
36 }
◆ ~scoped_timer()
scoped_timer::~scoped_timer |
( |
| ) |
|
|
inline |
Definition at line 37 of file parser_perf.cpp.
37 {
38 std::chrono::nanoseconds time_taken = std::chrono::steady_clock::now()-m_start;
39
40
41
42
43
44
45
46 std::cout << 1000000000.0/(double(time_taken.count())/1000.0) << std::endl;
47
48
49 }
The documentation for this class was generated from the following file: