View Single Post
  #1   Spotlight this post!  
Unread 17-02-2006, 11:50
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
timers in user_routines_fast

hi, I'm trying to create a generic timer in user_routines_fast. I don't need any exact amount of time to be calculated, just about 2/3 of a second. the code I'm using basically acts like this:

static int counter = 0;

if (counter >= 20)
{
//now I'm at where I want to get after 20 program loops
counter = 0;
}
else
{
counter++;
}



but I'm not having any luck in the fast file. what am I doing wrong? I have no problems in user_routines, but in fast everything doesn't work timer-wise. any ideas or help? thanks.
Stephen