#pragma once
#include "fd_event.hpp"
#include "reactor.hpp"
#include <chrono>

namespace tinyrpc {

    class Timer :  FdEvent {

    public:
        
        Timer(Reactor::Task cb = FdEvent::m_default_callback);

        // TODO 完善
        // template<typename Rep, typename Period = std::ratio<1>>
        // void setInterval(std::chrono::duration<Rep, Period> duar);

        ~Timer();
    private:
        // TODO .... 完善 Timer 类
    };

}