blob: b3f4b571e80e51d0ab08caa6cf411c956d607830 [file] [log] [blame]
Lei YU2f9c0cc2017-01-20 14:02:03 +08001#include <sdbusplus/bus.hpp>
2
3#include "config.h"
Lei YU96232822017-01-20 14:05:46 +08004#include "bmc_epoch.hpp"
Lei YUaf5abc52017-03-07 17:49:17 +08005#include "host_epoch.hpp"
Lei YU2f9c0cc2017-01-20 14:02:03 +08006
7int main()
8{
9 auto bus = sdbusplus::bus::new_default();
Lei YU96232822017-01-20 14:05:46 +080010 phosphor::time::BmcEpoch bmc(bus, OBJPATH_BMC);
Lei YUaf5abc52017-03-07 17:49:17 +080011 phosphor::time::HostEpoch host(bus,OBJPATH_HOST);
Lei YU2f9c0cc2017-01-20 14:02:03 +080012
13 bus.request_name(BUSNAME);
14
15 while (true)
16 {
17 bus.process_discard();
18 bus.wait();
19 }
20 return 0;
21}