| 2919 | timer(bool enabled = true) : enabled_(enabled) {} |
| 2920 | |
| 2921 | entry start(const std::string& name) { |
| 2922 | if (enabled_) { |
| 2923 | return entry(timings_.insert({name, std::chrono::high_resolution_clock::now()}).first); |
| 2924 | } else { |
| 2925 | return entry(); |
| 2926 | } |
| 2927 | } |
| 2928 | |
| 2929 | private: |
| 2930 | std::map< |
no test coverage detected