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 | { |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 12 | public: |
| 13 | virtual ~BmcTimeChangeListener() = default; |
Lei YU | 7b21879 | 2017-02-09 12:10:13 +0800 | [diff] [blame] | 14 | |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 15 | /** @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 YU | 7b21879 | 2017-02-09 12:10:13 +0800 | [diff] [blame] | 20 | }; |
| 21 | |
Gunnar Mills | ab4cc6a | 2018-09-14 14:42:39 -0500 | [diff] [blame] | 22 | } // namespace time |
| 23 | } // namespace phosphor |