View Single Post
Old 22 October 2010, 08:55   #11
pmc
gone
 
pmc's Avatar
 
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
You can use those CIA timers to count down from a supplied time value - I used those for accurate wait times in my trackloader - so, as you suggested previously you could just do something like:

supply a start value and set the timer running
execute your code
read the value left in the timer counter

and the difference between the start value and time left would then be how long the code took to run.

There'll be a maximum start value you can supply (can't remember it off the top off my head...) so I suppose that's what Photon was getting at when he said "not too long code runs"

What's the purpose of accurately timing out your code like this Lonewolf10...? Are you just experimenting...? I'm just curious.
pmc is offline  
 
Page generated in 0.05223 seconds with 11 queries