1.3.3.1.24 MAC_COMMON_TimeIsPast Function

C

bool MAC_COMMON_TimeIsPast
(
    int32_t timeValue
);

Summary

Indicates whether the given time value is in the past.

Description

This primitive indicates whether the given time value is in the past.

Precondition

SYS_TIME_Initialize primitive has to be called before.

Parameters

ParamDescription
timeValueTime value in milliseconds

Returns

True if the time value is in the past. False if the time value is not in the past.

Example

int32_t validityTime = 5000;

// Perform other actions
// ...

if (MAC_COMMON_TimeIsPast(validityTime))
{
    // Validity ended
}

Remarks

None.