25 #ifndef EXE4CPP_TIMER_H 26 #define EXE4CPP_TIMER_H 28 #include "exe4cpp/ITimer.h" 41 Timer(
const std::shared_ptr<ITimer>& timer) : timer{timer}
46 if (
auto impl = timer.lock())
57 inline steady_time_t expires_at()
59 if (
auto impl = timer.lock())
61 return impl->expires_at();
65 return steady_time_t::min();
70 std::weak_ptr<ITimer> timer;
exe4cpp header-only library namespace