10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultClock.h
1#ifndef TENDUKE_TIME_DEFAULTCLOCK_H
2#define TENDUKE_TIME_DEFAULTCLOCK_H
3
4#include "./Clock.h"
5
6namespace tenduke { namespace time {
7
8
12class DefaultClock : public Clock
13{
14public:
15 DefaultClock() = default;
16
17 // tenduke::time::Clock interface
18 std::int64_t epochSeconds() const noexcept override;
19};
20
21
22}}
23
24#endif // TENDUKE_TIME_DEFAULTCLOCK_H
A clock-service to generate timestamps.
Definition Clock.h:13
Default implementation tenduke::time::Clock.
Definition DefaultClock.h:13
std::int64_t epochSeconds() const noexcept override
Returns current time as seconds from epoch.
Definition DefaultClock.cpp:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7