Searched refs:TimePoint (Results 1 – 7 of 7) sorted by relevance
/openbmc/sdeventplus/src/sdeventplus/source/ |
H A D | time.hpp | 32 using TimePoint = typename Clock<Id>::time_point; typedef in sdeventplus::source::Time 36 using Callback = fu2::unique_function<void(Time& source, TimePoint time)>; 48 Time(const Event& event, TimePoint time, Accuracy accuracy, 74 TimePoint get_time() const; 81 void set_time(TimePoint time) const; 118 static sd_event_source* create_source(const Event& event, TimePoint time,
|
H A D | time.cpp | 17 Time<Id>::Time(const Event& event, TimePoint time, Accuracy accuracy, in Time() 37 typename Time<Id>::TimePoint Time<Id>::get_time() const in get_time() 43 return Time<Id>::TimePoint(SdEventDuration(usec)); in get_time() 47 void Time<Id>::set_time(TimePoint time) const in set_time() 86 sd_event_source* Time<Id>::create_source(const Event& event, TimePoint time, in create_source() 104 "timeCallback", source, userdata, TimePoint(SdEventDuration(usec))); in timeCallback()
|
/openbmc/sdeventplus/test/source/ |
H A D | time.cpp | 63 const Time<id>::TimePoint expected_time(std::chrono::seconds{2}); in TEST_F() 65 Time<id>::TimePoint saved_time; in TEST_F() 67 [&saved_time](Time<id>&, Time<id>::TimePoint time) { in TEST_F() 100 EXPECT_EQ(Time<id>::TimePoint(std::chrono::microseconds(2000100)), in TEST_F() 105 EXPECT_EQ(Time<id>::TimePoint(std::chrono::microseconds(2000100)), in TEST_F() 115 const Time<id>::TimePoint expected_time(std::chrono::seconds{2}); in TEST_F() 117 Time<id>::Callback callback = [](Time<id>&, Time<id>::TimePoint) {}; in TEST_F() argument 157 *event, Time<id>::TimePoint(std::chrono::seconds{2}), in SetUp() 159 [](Time<id>&, Time<id>::TimePoint) {}); in SetUp() argument 207 time->set_time(Time<id>::TimePoint(std::chrono::seconds{1})); in TEST_F() [all …]
|
/openbmc/telemetry/tests/src/fakes/ |
H A D | clock_fake.hpp | 39 template <class TimePoint> 40 static Milliseconds toTimestamp(TimePoint tp) in toTimestamp()
|
/openbmc/sdeventplus/example/ |
H A D | heartbeat.cpp | 38 auto hbFunc = [interval](Time& source, Time::TimePoint time) { in main()
|
/openbmc/sdeventplus/src/sdeventplus/utility/ |
H A D | timer.cpp | 28 source::Time<Id>&, typename source::Time<Id>::TimePoint) { in Timer() argument
|
/openbmc/pldm/softoff/ |
H A D | softoff.cpp | 304 Timer::TimePoint /*time*/) mutable { in hostSoftOff() argument
|