371 B
371 B
Timer() { ... }init();void init() noexcept { ... }_start = clock::now();Time start() const noexcept { ... }auto tp = _start.time_since_epoch();Time now() const noexcept { ... }auto tp = clock::now().time_since_epoch();Time elapsed() const noexcept { ... }