light/modules/time/private/timer.cpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

19 lines
290 B
C++

#include <time/timer.hpp>
namespace lt {
Timer::Timer(Timepoint start): m_start(start)
{
}
void Timer::reset(Timepoint start)
{
m_start = start;
}
[[nodiscard]] auto Timer::elapsed_time() const -> Duration
{
return { std::chrono::steady_clock::now() - m_start };
}
} // namespace lt