Measuring exact time between codelines?

Stellaferox

Active Member
Licensed User
Hi All,

I was wondering how the exact timeinterval between executing different lines of code in a program can be measured. Would this be done with clicks?
thnx,
Marc
 

sitajony

Active Member
Licensed User
It depends of the device CPU... It will be faster on 1GHZ than on 400MHZ... For test you can create a Timer control, and write between each line "nbr=nbr+1" and set 1ms to the timer, enable it before your code and on Tick you return "nbr"... But I don't think that it'll work...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…