10Duke Scale C++ Client
Loading...
Searching...
No Matches
Clock.h
1#ifndef TENDUKE_TIME_CLOCK_H
2#define TENDUKE_TIME_CLOCK_H
3
4#include <cstdint>
5
6namespace tenduke { namespace time {
7
8
12class Clock
13{
14public:
15 virtual ~Clock() = default;
16
21 virtual std::int64_t epochSeconds() const noexcept = 0;
22};
23
24
25}}
26
27#endif // TENDUKE_TIME_CLOCK_H
A clock-service to generate timestamps.
Definition Clock.h:13
virtual std::int64_t epochSeconds() const noexcept=0
Returns current time as seconds from epoch.
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7