Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
clock_impl.cpp
Go to the documentation of this file.
1
6
#include "
clock/impl/clock_impl.hpp
"
7
8
namespace
kagome::clock
{
9
10
template
<
typename
ClockType>
11
typename
Clock<ClockType>::TimePoint
ClockImpl<ClockType>::now
()
const
{
12
return
ClockType::now();
13
}
14
15
template
<
typename
ClockType>
16
uint64_t
ClockImpl<ClockType>::nowUint64
()
const
{
17
return
std::chrono::duration_cast<std::chrono::seconds>(
18
now().time_since_epoch())
19
.count();
20
}
21
22
template
class
ClockImpl<std::chrono::steady_clock>
;
23
template
class
ClockImpl<std::chrono::system_clock>
;
24
25
}
// namespace kagome::clock
kagome::clock
Definition:
clock.hpp:11
kagome::clock::ClockImpl::now
Clock< ClockType >::TimePoint now() const override
Definition:
clock_impl.cpp:11
clock_impl.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.cpp
Generated by
1.8.11