TPCANTimestamp question
Posted: Wed 10. Jul 2019, 22:06
Hello
I'm creating a c# application for monitoring CAN messages and also sending them. I have a receive window which also captures the messages I'm sending out. The problems is the messages I'm writing don't have a timestamp when I look at them in my receive window.
I'm fine with making my own timestamp but I feel like I'm missing something in my understanding of the timestamp struct.
I do this => Total Microseconds = micros + 1000 * millis + 0x100000000 * 1000 * millis_overflow
to get the total microseconds but this is total microseconds from when? I'm hoping to get some more context on what is actually going on with TPCANTimestamp so I can mimic it and also do something more interesting with it in my receive window.
Thanks
I'm creating a c# application for monitoring CAN messages and also sending them. I have a receive window which also captures the messages I'm sending out. The problems is the messages I'm writing don't have a timestamp when I look at them in my receive window.
I'm fine with making my own timestamp but I feel like I'm missing something in my understanding of the timestamp struct.
I do this => Total Microseconds = micros + 1000 * millis + 0x100000000 * 1000 * millis_overflow
to get the total microseconds but this is total microseconds from when? I'm hoping to get some more context on what is actually going on with TPCANTimestamp so I can mimic it and also do something more interesting with it in my receive window.
Thanks