Kagome
Polkadot Runtime Engine in C++17
kagome::clock::ClockImpl< ClockType > Class Template Reference

#include <clock_impl.hpp>

Inheritance diagram for kagome::clock::ClockImpl< ClockType >:
Collaboration diagram for kagome::clock::ClockImpl< ClockType >:

Public Member Functions

Clock< ClockType >::TimePoint now () const override
 
uint64_t nowUint64 () const override
 
- Public Member Functions inherited from kagome::clock::Clock< ClockType >
virtual ~Clock ()=default
 

Additional Inherited Members

- Public Types inherited from kagome::clock::Clock< ClockType >
using Duration = typename ClockType::duration
 
using TimePoint = typename ClockType::time_point
 
- Static Public Member Functions inherited from kagome::clock::Clock< ClockType >
static TimePoint zero ()
 

Detailed Description

template<typename ClockType>
class kagome::clock::ClockImpl< ClockType >

Definition at line 14 of file clock_impl.hpp.

Member Function Documentation

template<typename ClockType >
Clock< ClockType >::TimePoint kagome::clock::ClockImpl< ClockType >::now ( ) const
overridevirtual
Returns
a time point representing the current time

Implements kagome::clock::Clock< ClockType >.

Definition at line 11 of file clock_impl.cpp.

template<typename ClockType >
uint64_t kagome::clock::ClockImpl< ClockType >::nowUint64 ( ) const
overridevirtual
Returns
uint64_t representing number of seconds since the beginning of epoch (Jan 1, 1970)

Implements kagome::clock::Clock< ClockType >.

Definition at line 16 of file clock_impl.cpp.


The documentation for this class was generated from the following files: