xref: /openbmc/telemetry/src/interfaces/clock.hpp (revision fdb06a14)
1 #pragma once
2 
3 #include "types/duration_types.hpp"
4 
5 #include <chrono>
6 
7 namespace interfaces
8 {
9 
10 class Clock
11 {
12   public:
13     virtual ~Clock() = default;
14 
15     virtual Milliseconds steadyTimestamp() const noexcept = 0;
16     virtual Milliseconds systemTimestamp() const noexcept = 0;
17 };
18 
19 } // namespace interfaces
20