thnks for your concern, i want excatly that algorythm but i need codes for
start_your_timer_here
stop__your_timer_here
get_timer_value

but as i know there's no command for them at picbasic. Could you share if you have those commands?

Quote Originally Posted by Ioannis View Post
Oh dear, Does this '84 have 7 lives?

Anyway, what about:

Code:
while !porta.0:wend
start_your_timer_here
while !porta.1:wend
stop__your_timer_here
get_timer_value