From afd07e8012fd213497b85ed7af72a1961da9e18c Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Wed, 1 May 2024 07:55:29 +0000 Subject: [PATCH] feat add TimerPtr --- src/sled/timer/timer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sled/timer/timer.h b/src/sled/timer/timer.h index dfde01d..667f53e 100644 --- a/src/sled/timer/timer.h +++ b/src/sled/timer/timer.h @@ -26,6 +26,8 @@ private: class Timer { public: + using TimerPtr = std::unique_ptr; + using OnExpired = std::function()>; Timer(const Timer &) = delete; Timer &operator=(const Timer &) = delete;