Home » Community » Newbie corner » time measurement :: RTIMING, TimeStop, GetTickCount
Re: time measurement :: RTIMING, TimeStop, GetTickCount [message #36189 is a reply to message #36180] |
Wed, 09 May 2012 18:07   |
|
You are right cbporter, for very short times it is not precise enough. Also it can depend on the way compiler optimizes the code, I think. If one just needs to now if it takes 10ms or 100ms to send a packet, it is accurate enough 
IMHO the best way to achieve good resolution is usually to perform the task many times and measure total time, averaging it later - that is the way TIMING() does it. Using this trick you can get resolution in microseconds, assuming there is not too big deviation between the lengths of single actions.
Honza
|
|
|
 |
|
time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
By: Didier on Wed, 09 May 2012 22:23
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
 |
|
Re: time measurement :: RTIMING, TimeStop, GetTickCount
|
Goto Forum:
Current Time: Fri Jul 18 03:39:54 CEST 2025
Total time taken to generate the page: 0.04314 seconds
|