I send a frame to a CAN device with ID X, and I am supposed to receive an answer from this device with ID Y.
Before sending the data with ID X, I get the system time (GetSystemTimeAsFileTime).
When I read the queue of received data from ID Y, I compare the timestamp of received frame with my system time, to check if it is newer.
I notice a big gap (more than 15s) between those two times, though the answer has been received in a very short time.
The time base of the CAN driver, and the time base of the PC system doesn't seem to be synchronized.
How can I fix this problem?
Thank you in advance.