Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute Time is Incorrect #1

Open
freetink3r opened this issue Aug 4, 2023 · 1 comment
Open

Absolute Time is Incorrect #1

freetink3r opened this issue Aug 4, 2023 · 1 comment

Comments

@freetink3r
Copy link

When running with the option -t ABS, the timestamp does not match the time set on MacOS. The minutes are not even correct.

@mac-can
Copy link
Owner

mac-can commented Aug 18, 2023

According to PEAK's PCANBasic documentation, time-stamps are defined as follows:

TPCANTimestamp:
Defines a time-stamp of a CAN message. The time-stamp contains the number of microseconds since the start of Windows.
TPCANTimestampFD:
Represents the timestamp of a CAN message with flexible data rate. The time-stamp contains the number of microseconds since the start of Windows.

On macOS, the time-stamp contains the number of microseconds since the system was booted. Be aware that the system time is not updated while the system is sleeping. Therefore, the time-stamp is not monotonic.

If you like, you can compare this behavior on Windows with the utility can_moni from the PCANBasic-Wrapper repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants