summaryrefslogtreecommitdiffstats
path: root/bmc_time_change_listener.hpp
blob: 2c382f6e6b3d3abdb1630fc8d1fe7b57472c0546 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <chrono>

namespace phosphor
{
namespace time
{

class BmcTimeChangeListener
{
  public:
    virtual ~BmcTimeChangeListener() = default;

    /** @brief Notified on bmc time is changed
     *
     * @param[in] bmcTime - The epoch time in microseconds
     */
    virtual void onBmcTimeChanged(const std::chrono::microseconds& bmcTime) = 0;
};

} // namespace time
} // namespace phosphor
OpenPOWER on IntegriCloud