#include <timer.hh>
◆ Timer()
| Scroom::Utils::Timer::Timer |
( |
std::string |
label | ) |
|
|
inline |
30 valid = (0 == clock_gettime(CLOCK_MONOTONIC, &
t));
◆ ~Timer()
| Scroom::Utils::Timer::~Timer |
( |
| ) |
|
|
inline |
36 bool v2 = (0 == clock_gettime(CLOCK_MONOTONIC, &t2));
39 double elapsed = (t2.tv_nsec -
t.tv_nsec) * 1e-9;
40 elapsed += t2.tv_sec -
t.tv_sec;
41 spdlog::trace(
"{}: {:.9f}",
label, elapsed);
45 spdlog::error(
"{}: Clock invalid",
label);
◆ label
| std::string Scroom::Utils::Timer::label |
|
private |
| struct timespec Scroom::Utils::Timer::t |
|
private |
◆ valid
| bool Scroom::Utils::Timer::valid |
|
private |
The documentation for this class was generated from the following file: