Hi,
the driver time is based on the Linux Jiffies, see pcan_main.c line 2104 for more details:
/* request time in msec, fast */
u32 get_mtime(void)
{
/* return (jiffies / HZ) * 1000; */
return jiffies_to_msecs(jiffies);
}
regards
Michael
Thx for your answer. There is another question: how ...
Search found 2 matches
- Wed 18. Jan 2017, 03:49
- Forum: Linux
- Topic: The definition of timestamp in struct TPCANRdMsg
- Replies: 5
- Views: 6419
- Tue 17. Jan 2017, 03:55
- Forum: Linux
- Topic: The definition of timestamp in struct TPCANRdMsg
- Replies: 5
- Views: 6419
The definition of timestamp in struct TPCANRdMsg
1. What is the reference of the timestamp in struct "TPCANRdMsg", for example epoch?
2. Is there any C++11 standard library that can provide the same reference of the timestamp in struct "TPCANRdMsg"?
thx
2. Is there any C++11 standard library that can provide the same reference of the timestamp in struct "TPCANRdMsg"?
thx