Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
clock_impl.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_CORE_CLOCK_IMPL_CLOCK_IMPL_HPP
7
#define KAGOME_CORE_CLOCK_IMPL_CLOCK_IMPL_HPP
8
9
#include "
clock/clock.hpp
"
10
11
namespace
kagome::clock
{
12
13
template
<
typename
ClockType>
14
class
ClockImpl
:
public
Clock
<ClockType> {
15
public
:
16
typename
Clock<ClockType>::TimePoint
now
()
const override
;
17
uint64_t
nowUint64
()
const override
;
18
};
19
20
// aliases for implementations
21
using
SteadyClockImpl
=
ClockImpl<std::chrono::steady_clock>
;
22
using
SystemClockImpl
=
ClockImpl<std::chrono::system_clock>
;
23
24
}
// namespace kagome::clock
25
26
#endif // KAGOME_CORE_CLOCK_IMPL_CLOCK_IMPL_HPP
kagome::clock
Definition:
clock.hpp:11
kagome::clock::ClockImpl::now
Clock< ClockType >::TimePoint now() const override
Definition:
clock_impl.cpp:11
kagome::clock::Clock
Definition:
clock.hpp:18
clock.hpp
kagome::clock::ClockImpl
Definition:
clock_impl.hpp:14
kagome::clock::ClockImpl::nowUint64
uint64_t nowUint64() const override
Definition:
clock_impl.cpp:16
kagome::clock::Clock::TimePoint
typename ClockType::time_point TimePoint
Definition:
clock.hpp:27
core
clock
impl
clock_impl.hpp
Generated by
1.8.11