comp.lang.ada
 help / color / mirror / Atom feed
From: cts@kampong.aedinc.net ((null))
Subject: Clock drift in gnat 3.13p on Windows
Date: Fri, 26 Jan 2001 21:45:00 GMT
Date: 2001-01-26T21:45:00+00:00	[thread overview]
Message-ID: <wdmc6.3177$Uo2.5346@newsfeed.slurp.net> (raw)


I have an Ada application compiled with gnat 3.13p.  It runs on NT
or Windows 2000 PC that gets periodic clock updates via NTP.  

When the program first starts up Ada.Calendar.Clock, Ada.Real_Time.Clock
and Win32.Winbase.GetLocalTime all agree on the time.  After the
program has run for a few hours and the PC has gotten a few NTP
time updates, GNAT's idea of the current time is off by a second
or two.

I'd like to periodically update the GNAT runtime system's idea of
the current time.  Would it be sufficient to periodically adjust
the value of Base_Clock and Base_Ticks in System.OS_Primitives?

-- 
=======================================================================
 Life is short.                  | Craig Spannring 
      Bike hard, ski fast.       | cts@internetcds.com
 --------------------------------+------------------------------------



             reply	other threads:[~2001-01-26 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-26 21:45 (null) [this message]
2001-01-26 22:24 ` Clock drift in gnat 3.13p on Windows Pascal Obry
replies disabled

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