RUSH
Reusable Utilities in Single Headers is a collection of header-only utilities for C++
|
A simple chrono class to measure elapsed time. More...
#include <chrono.hpp>
Public Member Functions | |
Chrono (const Chrono &)=delete | |
Chrono (Chrono &&) noexcept=delete | |
Chrono & | operator= (const Chrono &)=delete |
Chrono & | operator= (Chrono &&other) noexcept=delete |
void | tic () |
Reset the chrono timer. | |
double | toc () const |
Get elapsed time since last tic. | |
std::string | unit () const |
Get unit as string. | |
A simple chrono class to measure elapsed time.
T | Unit of time (default to seconds). |
|
inlinenodiscard |
Get elapsed time since last tic.
|
inlinenodiscard |
Get unit as string.