diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-21 10:25:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-21 10:25:46 +0100 |
| commit | 81915d4db00c333da2debd2f8e9a0c02f7a316a3 (patch) | |
| tree | 68062af342d2ef6c7a3b5aebbe7cb761bbab5372 /src/lib/timer.h | |
| parent | 4c905330c2052cd77be09d9deb301f1fcf4b81f2 (diff) | |
wipopt-hacx
Diffstat (limited to 'src/lib/timer.h')
| -rw-r--r-- | src/lib/timer.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/timer.h b/src/lib/timer.h index be3706607..e60b1a8ba 100644 --- a/src/lib/timer.h +++ b/src/lib/timer.h @@ -105,4 +105,20 @@ private: }; +class GlobalTimer +{ +public: + void mark(std::string const& tag); + void reset(); + + static GlobalTimer* instance(); + +private: + static GlobalTimer* _instance; + + double _reset = 0; + double _last = 0; +}; + + #endif |
