Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Smile

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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Search for constant and show it....
Next Topic: How do I 'check' a Switch control
Goto Forum:
  


Current Time: Fri Jul 18 03:39:54 CEST 2025

Total time taken to generate the page: 0.04314 seconds