diff options
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 |
