Line data Source code
1 : /**
2 : * Copyright Soramitsu Co., Ltd. All Rights Reserved.
3 : * SPDX-License-Identifier: Apache-2.0
4 : */
5 :
6 : #ifndef IROHA_MST_TIME_PROVIDER_IMPL_HPP
7 : #define IROHA_MST_TIME_PROVIDER_IMPL_HPP
8 :
9 : #include <chrono>
10 : #include "multi_sig_transactions/mst_time_provider.hpp"
11 :
12 : namespace iroha {
13 :
14 : class MstTimeProviderImpl : public MstTimeProvider {
15 : public:
16 : TimeType getCurrentTime() const override {
17 20 : return std::chrono::system_clock::now().time_since_epoch()
18 20 : / std::chrono::milliseconds(1);
19 : }
20 : };
21 : } // namespace iroha
22 :
23 : #endif // IROHA_MST_TIME_PROVIDER_IMPL_HPP
|