blob: b37ff3ae68c32c486d9051b92e0cbe7f170b6737 [file] [log] [blame]
Krzysztof Grobelny80697712021-03-04 09:49:27 +00001#pragma once
2
Krzysztof Grobelny51f0fd52021-12-28 16:32:08 +01003#include "types/duration_types.hpp"
4
Krzysztof Grobelny80697712021-03-04 09:49:27 +00005#include <chrono>
6
7namespace interfaces
8{
9
10class Clock
11{
12 public:
Krzysztof Grobelny80697712021-03-04 09:49:27 +000013 virtual ~Clock() = default;
14
Krzysztof Grobelny51f0fd52021-12-28 16:32:08 +010015 virtual Milliseconds steadyTimestamp() const noexcept = 0;
16 virtual Milliseconds systemTimestamp() const noexcept = 0;
Krzysztof Grobelny80697712021-03-04 09:49:27 +000017};
18
19} // namespace interfaces