INtime SDK Help
hpe1588TimeCompare
INtime SDK v6 > About INtime > Networking and I/O > High-Performance Ethernet > hpe1588TimeCompare

Compare timeB to timeA.

int hpe1588TimeCompare(
    HPE_1588_TIMESTAMP *timeA, 
    HPE_1588_TIMESTAMP *timeB
);

Parameters

timeA
A pointer to a HPE_1588_TIMESTAMP structure.
timeB
A pointer to a HPE_1588_TIMESTAMP structure.

Return Values

Less than 0 if timeA less than timeB.
0 if timeA equals time B.
Greater than zero if timeA is greater than timeB.

Requirements

Versions Defined in Include Link to
INtime 6.0 (HPE3) intime/rt/include/hpeif2.h hpeif2.h hpeif2.lib
See Also