Re: profile_time in win32 euphoria
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Oct 21, 2004
- 602 views
>From: Robert Craig <guest at RapidEuphoria.com> >Reply-To: EUforum at topica.com >To: EUforum at topica.com >Subject: Re: profile_time in win32 euphoria >Date: Wed, 20 Oct 2004 21:39:43 -0700 > >posted by: Robert Craig <rds at RapidEuphoria.com> > >Elliott S. de Andrade wrote: > > Obviously, not a lot of searching.... I found it in a couple minutes > > (though I /did/ know what to look for already.) Your best bet would be >the > > SetTimer function ( > > <a >>href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/timers/timerreference/timerfunctions/settimer.asp</a> > >Thanks. >I'm not sure SetTimer will do what I want, but I'll look into it. >I get the impression it's more of an application-level timer. >In DOS, I have a precise machine-level interrupt that I handle >at a low level, even to the point of looking at CPU registers. >SetTimer seems to just place a stream of messages into a queue, >and I'm not sure if it even does that preemptively or not. > SetTimer has an option to call a function instead of posting messages to a window. However, since you might be changing the code entirely, it would be best to use the high-resolution timers. They are not always installed though, so you may have to fall back to using SetTimer. >Regards, > Rob Craig > Rapid Deployment Software > http://www.RapidEuphoria.com > ~[ WingZone ]~ http://wingzone.tripod.com/