comp.lang.ada
 help / color / mirror / Atom feed
From: Wiljan Derks <W.Derks@nl.cis.philips.com>
Subject: Re: GNAT R/T Annex and Win95
Date: 1996/04/23
Date: 1996-04-23T00:00:00+00:00	[thread overview]
Message-ID: <317D283C.60D9@nl.cis.philips.com> (raw)
In-Reply-To: 317BC037.1CFBAE39@escmail.orl.mmc.com

Theodore E. Dennison wrote:
> According to my NT book, there are two ways to do Timers with NT. The
> first uses the SetTimer system call. This will put a WM_TIMER event
> in the thread's normal message queue.  The resolution is ABOUT 55
> milliseconds, but there can be message queue delays. Not very useful.
> 

This remark gives the wrong impression for NT. Gnat uses things
like waitforsingleobject in its tasking implementation. For this service
one can specify a time in milliseconds, but as far as I know and any intel
system it has a resolution of 10ms.
Normally services like this one will be use for timing on NT.

> The second is the "Multimedia Timer". This timer allows you to define
> a callback that will get called directly by an interrupt, without any
> message queue processing overhead. The resolution is said to be
> "about 16 (Intel) milliseconds". Whatever that means, you can get the
> exact resolution on your system via a call to "timeGetDevCaps". (Oddly
> enough, Microsoft's example uses a resolution of 5 milliseconds) This
> is a little more useful, but still not what we would like to see.

I did not really use the multimedia timers upto now but I think one can
get resolutions upto 1 ms. I called the function timeGetDevCaps and it
reports me a minimum of 1 and a maximum of 1000000 milliseconds for
multimedia timer resolution range.

Wiljan




  reply	other threads:[~1996-04-23  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-19  0:00 GNAT R/T Annex and Win95 Marin David Condic, 407.796.8997, M/S 731-93
1996-04-20  0:00 ` Tom Griest
1996-04-20  0:00 ` ADA, Windows NT and Real-Time (was GNAT R/T Annex and Win95) Brian K. Catlin
1996-04-21  0:00   ` steved
1996-04-21  0:00     ` Brian K. Catlin
1996-04-20  0:00 ` GNAT R/T Annex and Win95 Robert Dewar
1996-04-27  0:00   ` Dave Wood
1996-04-27  0:00     ` Robert Dewar
1996-04-20  0:00 ` Wiljan Derks
1996-04-22  0:00 ` Theodore E. Dennison
1996-04-23  0:00   ` Wiljan Derks [this message]
1996-04-22  0:00 ` Greg Bond
  -- strict thread matches above, loose matches on Subject: below --
1996-04-23  0:00 Marin David Condic, 407.796.8997, M/S 731-93
1996-04-23  0:00 ` Theodore E. Dennison
1996-04-16  0:00 Greg Bond
1996-04-17  0:00 ` Tom Griest
     [not found] ` <4l2sliINNl7m@ra.dept.cs.yale.edu>
1996-04-18  0:00   ` Dale Pontius
1996-04-18  0:00 ` Robert Dewar
1996-04-22  0:00   ` Greg Bond
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox