🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7421

reading the cmos hardware mainboard clock and updating the software clock

#7421
From: Peted
Date: Mon, 07 Feb 2005 06:29
25 lines
1965 bytes
Hi,


Can anyone advise me please how i can go about (in c++ builder)
reading the cmos mainboard hardware clock, and using that info to
update the windows XP software clock.  I would need this app to run
quiently in the background and update the os from the cmos say once
every 2 hours.

I have a machine that runs an graphicaly intensive application (3rd
party), that for some reason not only knocks the windows XP clock
accuracy out by a large margin, but always makes it inaccurate by
putting the clock forward in time only, never backwards.
Eg, i ran it once for 13 hours and the XP clock was 10min forward. I
then ran it for 45 min and the clock was 15min forward.  There dont
seem to be an consistancy to the problem.


I undertsand that on boot XP reads the cmos clock, then maintains its
own internal counter. On this machine that means when it reboots (and
its scheduled to reboot 1 per day) the clock is accurate, becasue the
cmos clock is not affected by the application.

The comupter is standalone with no internet connection and no facility
to fit an external clock for updates.
Technical Details
Message-ID: <c82e01tqsks6rk5u4vmumnk9h5465vq5ip@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5f4e8059be4d14f7,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Peted
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: reading the cmos hardware mainboard clock and updating the software clock
Date: Mon, 07 Feb 2005 14:29:45 +0800
Message-ID: <c82e01tqsks6rk5u4vmumnk9h5465vq5ip@4ax.com>
X-Newsreader: Forte Free Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 220.235.120.174
X-Trace: newsgroups.borland.com 1107757615 220.235.120.174 (6 Feb 2005 22:26:55 -0800)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail