blob: 44fc4790a692dd0b33cff73e29a3c990347803c7 [file] [log] [blame]
Lei YU7b218792017-02-09 12:10:13 +08001#pragma once
2
3#include <chrono>
4
5namespace phosphor
6{
7namespace time
8{
9
10class 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}