hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
mst_time_provider_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_MST_TIME_PROVIDER_IMPL_HPP
7 #define IROHA_MST_TIME_PROVIDER_IMPL_HPP
8 
9 #include <chrono>
11 
12 namespace iroha {
13 
15  public:
16  TimeType getCurrentTime() const override {
17  return std::chrono::system_clock::now().time_since_epoch()
18  / std::chrono::milliseconds(1);
19  }
20  };
21 } // namespace iroha
22 
23 #endif // IROHA_MST_TIME_PROVIDER_IMPL_HPP
Definition: mst_time_provider.hpp:16
Definition: mst_time_provider_impl.hpp:14
auto now()
Definition: time.hpp:23
TimeType getCurrentTime() const override
Definition: mst_time_provider_impl.hpp:16
Definition: block_query.hpp:16
shared_model::interface::types::TimestampType TimeType
Definition: mst_types.hpp:25