Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
impl
basic_waitable_timer.cpp
basic_waitable_timer.hpp
clock_impl.cpp
clock_impl.hpp
clock.hpp
timer.hpp
common
consensus
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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