ARTS 2.5.11 (git: 725533f0)
timer_struct.h
Go to the documentation of this file.
1#ifndef timer_struct_h
2#define timer_struct_h
3
4#include <chrono>
5
6struct Timer {
7 bool running{false};
8 bool finished{false};
9 std::clock_t cputime_start;
10 std::chrono::time_point<std::chrono::high_resolution_clock> realtime_start;
11 std::clock_t cputime_end;
12 std::chrono::time_point<std::chrono::high_resolution_clock> realtime_end;
13
14 friend std::ostream& operator<<(std::ostream& os, const Timer&) {return os;}
15};
16
17#endif
std::clock_t cputime_end
bool running
Definition timer_struct.h:7
std::chrono::time_point< std::chrono::high_resolution_clock > realtime_start
friend std::ostream & operator<<(std::ostream &os, const Timer &)
bool finished
Definition timer_struct.h:8
std::clock_t cputime_start
Definition timer_struct.h:9
std::chrono::time_point< std::chrono::high_resolution_clock > realtime_end