blob: 2c382f6e6b3d3abdb1630fc8d1fe7b57472c0546 [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{
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050012 public:
13 virtual ~BmcTimeChangeListener() = default;
Lei YU7b218792017-02-09 12:10:13 +080014
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050015 /** @brief Notified on bmc time is changed
16 *
17 * @param[in] bmcTime - The epoch time in microseconds
18 */
19 virtual void onBmcTimeChanged(const std::chrono::microseconds& bmcTime) = 0;
Lei YU7b218792017-02-09 12:10:13 +080020};
21
Gunnar Millsab4cc6a2018-09-14 14:42:39 -050022} // namespace time
23} // namespace phosphor