10Duke Enterprise 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
6
namespace
tenduke
{
namespace
time {
7
8
12
class
Clock
13
{
14
public
:
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
tenduke::time::Clock
A clock-service to generate timestamps.
Definition
Clock.h:13
tenduke::time::Clock::epochSeconds
virtual std::int64_t epochSeconds() const noexcept=0
Returns current time as seconds from epoch.
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
time
Clock.h
Generated by
1.9.8