LCOV - code coverage report
Current view: top level - irohad/multi_sig_transactions - mst_time_provider_impl.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 2 2 100.0 %
Date: 2019-03-07 14:46:43 Functions: 5 6 83.3 %

          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

Generated by: LCOV version 1.13