From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with time function under djgpp+allegro Date: Mon, 08 Oct 2001 15:12:00 +0200 Lines: 8 Message-ID: <3BC1A620.351E1FCF@is.elta.co.il> References: <9ps5ul$88q$1 AT wanadoo DOT fr> NNTP-Posting-Host: 192.116.55.139 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1002546702 21222089 192.116.55.139 (16 [61365]) X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Lololorient wrote: > > In my program I use allegro timers. Is there a way to reset > time of my program so it get it from the bios clock that seems ok. You can read the CMOS clock time by issuing Int 1Ah, function 2 (use function 4 if you need the date as well). You can then resync the system clock with the CMOS clock via the library function settimeofday.