Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Krzysztof Grobelny | 51f0fd5 | 2021-12-28 16:32:08 +0100 | [diff] [blame] | 3 | #include "types/duration_types.hpp" |
| 4 | |
Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame] | 5 | #include <chrono> |
| 6 | |
| 7 | namespace interfaces |
| 8 | { |
| 9 | |
| 10 | class Clock |
| 11 | { |
| 12 | public: |
Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame] | 13 | virtual ~Clock() = default; |
| 14 | |
Krzysztof Grobelny | 51f0fd5 | 2021-12-28 16:32:08 +0100 | [diff] [blame] | 15 | virtual Milliseconds steadyTimestamp() const noexcept = 0; |
| 16 | virtual Milliseconds systemTimestamp() const noexcept = 0; |
Krzysztof Grobelny | 8069771 | 2021-03-04 09:49:27 +0000 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | } // namespace interfaces |