|
Kagome
Polkadot Runtime Engine in C++17
|
#include <clock.hpp>
Public Types | |
| using | Duration = typename ClockType::duration |
| using | TimePoint = typename ClockType::time_point |
Public Member Functions | |
| virtual | ~Clock ()=default |
| virtual TimePoint | now () const =0 |
| virtual uint64_t | nowUint64 () const =0 |
Static Public Member Functions | |
| static TimePoint | zero () |
An interface for a clock
| clock | type is an underlying clock type, such as std::steady_clock |
| using kagome::clock::Clock< ClockType >::Duration = typename ClockType::duration |
| using kagome::clock::Clock< ClockType >::TimePoint = typename ClockType::time_point |
|
virtualdefault |
|
pure virtual |
Implemented in kagome::clock::ClockImpl< ClockType >.
|
pure virtual |
Implemented in kagome::clock::ClockImpl< ClockType >.
|
inlinestatic |