Kagome
Polkadot Runtime Engine in C++17
clock_impl.cpp
Go to the documentation of this file.
1 
7 
8 namespace kagome::clock {
9 
10  template <typename ClockType>
12  return ClockType::now();
13  }
14 
15  template <typename ClockType>
17  return std::chrono::duration_cast<std::chrono::seconds>(
18  now().time_since_epoch())
19  .count();
20  }
21 
24 
25 } // namespace kagome::clock
Clock< ClockType >::TimePoint now() const override
Definition: clock_impl.cpp:11
uint64_t nowUint64() const override
Definition: clock_impl.cpp:16
typename ClockType::time_point TimePoint
Definition: clock.hpp:27