Page 1 of 1

Initial timestamp

Posted: Tue 29. Oct 2024, 10:57
by Gyula.L
Hello,

I plan to get the initial timestamp in the moment of starting my application. The timestamp for all CAN frames will be then calculated, related to the initial timestamp.
I could do it by reading the very first frame and take its timestamp as reference - but I don't like this solution, as I need the timestamp before starting reading.
Is it possible to get only a timestamp, without reading frames?

I am using PCANBasic.NET.dll.

Gyula

Re: Initial timestamp

Posted: Tue 29. Oct 2024, 11:03
by K.Wagner
Hello,

yes, this is possible. There is a class within the Assembly, that can be used for this purpose. Please see the documentation for it at SystemTimestamp Class, and check the property ElapsedMicroseconds.