6#if __has_include(<cereal/cereal.hpp>)
7#include <cereal/cereal.hpp>
21 std::chrono::high_resolution_clock::time_point start;
83#if __has_include(<cereal/cereal.hpp>)
88 template <
class Archive>
98 template <
class Archive>
102 reset(std::chrono::high_resolution_clock::now() - std::chrono::microseconds(
elapsed));
A wrapper for std::vector.
Definition array.hpp:75
A class for easily managing timers.
Definition timer.hpp:19
unsigned int hours() const noexcept
Get the elapsed time in minutes.
unsigned int millis() const noexcept
Get the elapsed time in milliseconds.
void reset() noexcept
Reset the timer.
timer(bool run=true) noexcept
Timer constructor.
unsigned int seconds() const noexcept
Get the elapsed time in seconds.
unsigned int micros() const noexcept
Get the elapsed time in microseconds.
unsigned int minutes() const noexcept
Get the elapsed time in minutes.