Go to Post We call ourselves community/family. We are. Our kitchen table where we gather is the size of Chief Delphi. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Five Great Timers CronosPrime1 Programming 2 12-02-2006 12:46
Using Timers psquared Programming 9 30-01-2006 10:29
Timers MarkVH Programming 1 13-02-2005 11:30
Securing interrupt-driven timers Orborde Programming 3 10-02-2005 15:52
How do you program timers? roberthan Programming 5 04-02-2004 02:18


All times are GMT -5. The time now is 10:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi