🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14838

Re: A seperate timer

#14838
From: Steve Schafer (TeamB)
Date: Thu, 29 Jul 1999 00:00
18 lines
1402 bytes
On Wed, 28 Jul 1999 15:55:30 -0500, "Gary Klein" <gary@eolas.com>
wrote:

>We want to keep time on an IBM-PC which will not be vulnereable to a System
>administartor changing the System clock. I'm thinking there might be another
>register somewhere that you can use which will count milliseconds.

No, there isn't. There is a tick counter on Windows systems, but its
resolution is generally in the vicinity of 10-20 msec. You can access
it with a native function that calls the GetTickCount API function.
Obviously, this will only work on a Windows machine.

There are also two other timers you can use, a very high-resolution
timer (QueryPerformanceCounter) and the multimedia timer
(timeGetTime). These are good for measuring time intervals, but not so
good for absolute time.

-Steve
Technical Details
Message-ID: <37aac50d.103030571@90.0.0.40>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7nncho$8288@forums.borland.com> <37a63d0c.68207641@90.0.0.40> <7nnqr0$8f69@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4c871b8a3bc42f23
X-Google-Attributes: gidf74b3,public
From: pandeng@telepath.com (Steve Schafer (TeamB))
Subject: Re: A seperate timer
Date: 1999/07/29
Message-ID: <37aac50d.103030571@90.0.0.40>
X-Deja-AN: 506445663
Content-Transfer-Encoding: 7bit
References: <7nncho$8288@forums.borland.com> <37a63d0c.68207641@90.0.0.40> <7nnqr0$8f69@forums.borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: TeamB
Mime-Version: 1.0
Reply-To: pandeng@telepath.com
Newsgroups: borland.public.jbuilder.java.language