comp.lang.ada
 help / color / mirror / Atom feed
From: Paul Whittington <paul@grep.net>
Subject: Re: System Clock update rate of 0.055 milliseconds in DOS/Win95 and Ada.Calendar
Date: 1999/01/09
Date: 1999-01-09T00:00:00+00:00	[thread overview]
Message-ID: <36984F3F.FA6C58C3@grep.net> (raw)
In-Reply-To: 01be3c40$f93dc120$3804fbd1@longslide

There are at least two possibilities.  One is Win32 specific and the
other Intel specific.

1) Win32 API call.  The GetTickCount function retrieves the number of 
milliseconds that have elapsed since Windows was started.

2) Use the RDTSC instruction on the Intel Pentium processor to
read the timestamp counter.

Both of these are not platform portable.  The first is accurate to one
millisecond while the second is accurate to one processor cycle.

TTFN Paul

Craig Garrett wrote:
> 
> In Dos/Win95, the system clock is only updated every 0.055 milliseconds,
> which from a real-time simulation perspective is absolutely pitiful.  Is
> there a system call to force the OS to update the system clock more
> frequently or on demand?  I am sick of having such low resolution.  How do
> real-time games such as Quake and flight-sims on PCs running Dos/Win95 get
> around this problem?
>   Craig

-- 
Paul Whittington
GrepNet, Inc.
(208)523-7375
paul@grep.net

"Even if you're on the right track you'll get
 run over if you stand still."

Will Rogers




  reply	other threads:[~1999-01-09  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-10  0:00 System Clock update rate of 0.055 milliseconds in DOS/Win95 and Ada.Calendar Craig Garrett
1999-01-09  0:00 ` Paul Whittington [this message]
1999-01-10  0:00   ` robert_dewar
1999-01-13  0:00     ` dmitry6243
1999-01-13  0:00       ` Tom Moran
1999-01-10  0:00 ` Tom Moran
1999-01-10  0:00   ` Craig Garrett
1999-01-10  0:00     ` Tom Moran
1999-01-11  0:00 ` dennison
     [not found] ` <369A7B97.6AC0CA00@hercii.mar.lmco.com>
1999-01-12  0:00   ` David C. Hoos, Sr.
1999-01-12  0:00     ` Tom Moran
replies disabled

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