linux

canReadTimer

Syntax


#include <canlib.h>
canStatus canReadTimer(int handle, unsigned int *time);

Description

Reads the current time from the clock used to timestamp the messages for the indicated circuit.

Input Parameters

handle
A handle to an open circuit.
Input/Output Parameters

time
A pointer to an UNSIGNED INT which receives the current time.
Return Value

canOK (zero) if success
canERR_xxx (negative) if failure.

Related Topics

Time measurement in CANLIB32