From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada, games and frame rate calculation
Date: Thu, 17 Feb 2005 09:39:39 +0100
Date: 2005-02-17T09:37:16+01:00 [thread overview]
Message-ID: <1g9cglm0ubdz2.d1kk86j8g5xz.dlg@40tude.net> (raw)
In-Reply-To: mailman.148.1108601724.527.comp.lang.ada@ada-france.org
On 16 Feb 2005 19:55:02 -0500, Stephen Leake wrote:
> "Luke A. Guest" <laguest@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk> writes:
>
>> It's portable, so yeah there will be a windaz build. My main development
>> platform is Linux. I'm surprised that the win32 is identical to Calendar,
>> well not that surprised ;-) just as long as I can get milliseconds from it
>> then that'll be fine.
>
> You can read the clock with microsecond precision (on Windows and some
> other platforms); you can only delay with an accuracy of about 10
> milliseconds (again on Windows).
This is a tunable parameter which default setting depends on the windows
version. It is 10ms under NT. I am not sure about XP, but it seems to be
about 1ms there.
Anyway, an application can screw it up to 1ms. The corresponding Win32 API
is timeBegPeriod. (It is a system-wide setting, BTW! (:-))
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2005-02-17 8:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-16 21:32 Ada, games and frame rate calculation Luke A. Guest
2005-02-16 22:16 ` Stephen Leake
2005-02-16 23:03 ` Luke A. Guest
2005-02-17 0:55 ` Stephen Leake
2005-02-17 2:33 ` tmoran
2005-02-17 8:39 ` Dmitry A. Kazakov [this message]
2005-02-17 23:23 ` Randy Brukardt
2005-02-19 14:48 ` Simon Wright
2005-02-17 0:06 ` Jeffrey Carter
2005-02-17 2:33 ` tmoran
2005-02-17 22:08 ` Simon Wright
2005-02-18 0:06 ` Jeffrey Carter
2005-02-18 5:30 ` tmoran
2005-02-19 0:03 ` Jeffrey Carter
2005-02-19 0:45 ` tmoran
2005-02-19 22:19 ` Jeffrey Carter
2005-02-18 9:04 ` Adrien Plisson
2005-02-18 9:19 ` Vinzent 'Gadget' Hoefler
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox