Search found 4 matches
- Mon 15. Jun 2020, 10:42
- Forum: PCAN-Basic
- Topic: Measuring time with QPC
- Replies: 7
- Views: 8796
Re: Measuring time with QPC
Yes, that was it. I get similar timings now. Thank you for your help!
- Mon 15. Jun 2020, 10:10
- Forum: PCAN-Basic
- Topic: Measuring time with QPC
- Replies: 7
- Views: 8796
Re: Measuring time with QPC
Sorry for not including whole code in first comment. It's defined as long long int microsTimestamp; .
If I do:
microsTimestamp = timestamp.micros + 1000 * timestamp.millis + 0x100000000 * 1000 * timestamp.millis_overflow;
std::cout << "sizeof: "<< sizeof(microsTimestamp) << std::endl;
It ...
If I do:
microsTimestamp = timestamp.micros + 1000 * timestamp.millis + 0x100000000 * 1000 * timestamp.millis_overflow;
std::cout << "sizeof: "<< sizeof(microsTimestamp) << std::endl;
It ...
- Mon 15. Jun 2020, 07:39
- Forum: PCAN-Basic
- Topic: Measuring time with QPC
- Replies: 7
- Views: 8796
- Wed 10. Jun 2020, 16:01
- Forum: PCAN-Basic
- Topic: Measuring time with QPC
- Replies: 7
- Views: 8796
Measuring time with QPC
Hi,
I read some forum posts where you specify that you use QueryPerformanceCounter and QueryPerformanceFrequency to measure timestamps. I tried to do the same, but I get different timestamps. Which part am I doing wrong?
My code is:
send CAN frame and save current time point with code:
LARGE ...
I read some forum posts where you specify that you use QueryPerformanceCounter and QueryPerformanceFrequency to measure timestamps. I tried to do the same, but I get different timestamps. Which part am I doing wrong?
My code is:
send CAN frame and save current time point with code:
LARGE ...