8 #include "config/FpConfig.hpp" 31 m_epoch_fw_time = fw_time;
32 m_epoch_os_time = os_time;
36 void OsTime::SetCurrentTime_cmdHandler(
FwOpcodeType opCode, U32
cmdSeq, U32 seconds_now) {
44 m_epoch_fw_time =
Fw::Time(seconds_now, 0);
45 m_epoch_os_time = time_now;
56 bool temp_epoch_valid;
61 temp_epoch_fw_time = m_epoch_fw_time;
62 temp_epoch_os_time = m_epoch_os_time;
63 temp_epoch_valid = m_epoch_valid;
67 if (!temp_epoch_valid) {
83 time = temp_epoch_fw_time;
~OsTime()
Destroy OsTime object.
void set_epoch(const Fw::Time &fw_time, const Os::RawTime &os_time)
FwIdType FwOpcodeType
The type of a command opcode.
Operation was successful.
void log_WARNING_HI_SetCurrentTimeError(U32 status) const
Status now() override
Get the current time.
OsTime(const char *const compName)
Construct OsTime object.
static Time add(const Time &a, const Time &b)
Auto-generated base for OsTime component.
PlatformIndexType FwIndexType
locks a mutex within the current scope
Status getTimeInterval(const Os::RawTime &other, Fw::TimeInterval &interval) const override
Calculate the time interval between this and another raw time.
RateGroupDivider component implementation.