// Use of this source code is governed by a BSD 3-Clause License // that can be found in the LICENSE file. // Author: caozhiyi (caozhiyi5@gmail.com) #include "timer.h" #include "timer_1ms.h" #include "timer_container.h" namespace cppnet { std::shared_ptr MakeTimer50Ms() { return std::make_shared(); } std::shared_ptr MakeTimer1Sec() { auto sub = MakeTimer50Ms(); return std::make_shared(sub, TC_50MS, TC_1SEC); } std::shared_ptr MakeTimer1Min() { auto sub = MakeTimer1Sec(); return std::make_shared(sub, TC_1SEC, TC_1MIN); } std::shared_ptr MakeTimer1Hour() { auto sub = MakeTimer1Min(); return std::make_shared(sub, TC_1MIN, TC_1HOUR); } }