nanogui: Timer API.


Previous by date: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Next by date: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Previous in thread: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Next in thread: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr

Subject: Re: Timer API.
From: Kyle Harris ####@####.####
Date: 2 Feb 2000 18:39:08 -0000
Message-Id: <389876F2.82AEA2A6@nexus-tech.net>


Greg Haerr wrote:
> 
> : I don't think Microwindows provides for anything like this. Are you
> : running Linux (unix)? If so, you can use signal() and alarm() for low
> : resolution timers. select() and setitimer() can be used for higher
> : resolutions.
> :
> : > Does anyone have an example ?
> : >
> :
> : See the man pages for the above functions.
> :
> : Normally, you set up a signal handler for the SIGALRM and use alarm to
> : start timers.
> 
> Kyle's code could work, but that's not how we want to do it,
> since Win32 requires millisecond timers, min resolution 25ms.
> So we'll have to use select().  And it will have to be the main select().
> We want all events to come thru the microwindows main loop, so
> we don't want to use alarm, signal, or setitimer...
> 

Ooooppps... I guess this is my unix (vs. windows) background showing :(.
Will Nano-X also have a timer API added, or is this just for
Microwindows?

Just out of curiosity, how do you plan to use select() since this will
block until the timeout expires?

BTW. The article posted at linuxdevices.com was great! 

Kyle.

Previous by date: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Next by date: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Previous in thread: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr
Next in thread: 2 Feb 2000 18:39:08 -0000 Re: Timer API., Greg Haerr


Powered by ezmlm-browse 0.20.