Search found 4 matches

by ValeVG
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!
by ValeVG
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 ...
by ValeVG
Mon 15. Jun 2020, 07:39
Forum: PCAN-Basic
Topic: Measuring time with QPC
Replies: 7
Views: 8796

Re: Measuring time with QPC

M.Gerber wrote:
Thu 11. Jun 2020, 09:27
Hello ValeVG,

We have a holiday here in Germany, thus please be patient until the answer to your problem (anticipated tomorrow, Friday).

Thanks,
Mark
Sure thing, enjoy your holidays. :)
by ValeVG
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 ...