Lei YU | 7b21879 | 2017-02-09 12:10:13 +0800 | [diff] [blame] | 1 | #pragma once |
2 | |||||
3 | #include <chrono> | ||||
4 | |||||
5 | namespace phosphor | ||||
6 | { | ||||
7 | namespace time | ||||
8 | { | ||||
9 | |||||
10 | class BmcTimeChangeListener | ||||
11 | { | ||||
12 | public: | ||||
13 | virtual ~BmcTimeChangeListener() = default; | ||||
14 | |||||
15 | /** @brief Notified on bmc time is changed | ||||
16 | * | ||||
17 | * @param[in] bmcTime - The epoch time in microseconds | ||||
18 | */ | ||||
19 | virtual void onBmcTimeChanged( | ||||
20 | const std::chrono::microseconds& bmcTime) = 0; | ||||
21 | }; | ||||
22 | |||||
23 | } | ||||
24 | } |