Skip to content

Conversation

@zeerekahmad
Copy link
Contributor

@zeerekahmad zeerekahmad commented Jan 29, 2026

Add in timestamping for usability

We want the socketcan adapter system to be able to record timestamps into the can frames so that the user can reference it when evaluating data. The user can also record said timestamp to measure things like frequency or discrepancies in expectations.

To enable this we are making the following changes

Can Frame

  • Add storage for BUS TIME which is tied to system clock and RECEIVE TIME which we tie to steady clock. This way we have two references for when a can frame is received
  • Add the missing getter for the timestamps, and add getters for both types in case the caller is using one or the other
  • Switch from uint64_t to utilizing std::chrono to align with C++ standard

Socketcan Adapter

  • Store the bus time and receive time when receiving a CAN message as the appropriate type

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

Successfully merging this pull request may close these issues.

2 participants