hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
timer_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TIMER_IMPL_HPP
7 #define IROHA_TIMER_IMPL_HPP
8 
10 
11 #include <chrono>
12 
13 namespace iroha::consensus::yac {
14  class TimerImpl : public Timer {
15  public:
20  TimerImpl(std::chrono::milliseconds delay_milliseconds);
21 
22  void invokeAfterDelay(std::function<void()> handler) override;
23 
24  private:
25  std::chrono::milliseconds delay_milliseconds_;
26  };
27 } // namespace iroha::consensus::yac
28 
29 #endif // IROHA_TIMER_IMPL_HPP
void invokeAfterDelay(std::function< void()> handler) override
Definition: timer_impl.cpp:15
Definition: timer.hpp:15
TimerImpl(std::chrono::milliseconds delay_milliseconds)
Definition: timer_impl.cpp:12
Definition: timer_impl.hpp:14
Definition: cluster_order.hpp:16