Name
hw_CmpTime -- compare two time stamps (V5.0)
Synopsis
int r = hw_CmpTime(struct hwos_TimeVal *t1, struct hwos_TimeVal *t2);
Function
This function compares the two time stamps and returns a value that indicates their relation. 0 is returned if both time stamps are identical, -1 is returned if t2 is earlier than t1 and 1 is returned if t1 is earlier than t2.

Designer compatibility
Supported since Designer 4.0

Inputs
t1
pointer to a struct hwos_TimeVal
t2
pointer to a struct hwos_TimeVal
Results
r
relation of the two time stamps (see above)

Show TOC