ot::MeshCoP::Timestamp::Compare() method
Compares two timestamps. Either one or both @p aFirst or @p aSecond can be invalid. A valid timestamp is considered greater than an invalid one. If both are invalid, they are considered as equal.
Arguments
aFirst
A reference to the first timestamp to compare.
aSecond
A reference to the second timestamp to compare.
Return value
-1 if @p aFirst is less than @p aSecond (`aFirst < aSecond`). 0 if @p aFirst is equal to @p aSecond (`aFirst == aSecond`). 1 if @p aFirst is greater than @p aSecond (`aFirst > aSecond`).
ot::MeshCoP::Timestamp::Compare() is called by 7 functions and calls 4 functions:
![]()
ot::MeshCoP::Timestamp::Compare()
ot::MeshCoP::Timestamp::Compare():
![]()
ot::MeshCoP::Timestamp::Compare()