-
January 23rd, 2009, 12:30 PM
#1
Periodic function
I'd like to execute a function at 100Hz. IOW, every 100Hz I'd like to call say a 'foo' method. At issue: I only have Visual Studio Express (2005 and 2008). My research thus far suggest that I'm not able to use the Windows API suite (SetTimer, CreateEvent etc. etc ). True/False?
Is it possible then to achieve my objective via QueryPerformanceCounter or std::clock?
Thanks in advance
-
January 23rd, 2009, 12:37 PM
#2
Re: Periodic function
True. The standard windows timers can't even come close to what you want.
-
January 23rd, 2009, 12:45 PM
#3
Re: Periodic function
Hz is not a unit of time. Your question doesn't make sense.
-
January 23rd, 2009, 12:55 PM
#4
Re: Periodic function
The meaning is clear despite the incorrect units. Every 10 milliseconds = 100Hz. And yeah, you'll need a kernel-level interrupt mechanism to guarantee that sort of granularity.
-
January 23rd, 2009, 01:18 PM
#5
-
January 23rd, 2009, 01:24 PM
#6
Re: Periodic function
Originally Posted by GCDEF
Hz is not a unit of time. Your question doesn't make sense.
And thats the best you could do? Get a grip!!
-
January 23rd, 2009, 01:25 PM
#7
Re: Periodic function
Originally Posted by Alin
I might have a follow up question on this, nonetheless, thanks Alin, Skizmo and Lindley.
-
January 23rd, 2009, 01:27 PM
#8
Re: Periodic function
Originally Posted by mop65715
And thats the best you could do? Get a grip!!
Programming is an exact science. Using the correct terminology is important.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|