www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/16/04:36:44

From: "Lololorient" <laurent DOT augu AT wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem with time function under djgpp+allegro
Date: Tue, 16 Oct 2001 09:41:25 +0200
Organization: Wanadoo, l'internet avec France Telecom
Lines: 24
Message-ID: <9qgok8$aa4$1@wanadoo.fr>
References: <9ps5ul$88q$1 AT wanadoo DOT fr> <3BC1A620 DOT 351E1FCF AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: mix-rennes211-4-47.abo.wanadoo.fr
X-Trace: wanadoo.fr 1003218376 10564 193.248.9.47 (16 Oct 2001 07:46:16 GMT)
X-Complaints-To: abuse AT wanadoo DOT fr
NNTP-Posting-Date: 16 Oct 2001 07:46:16 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thank's for your answer,

I tested it, but I got some problem with this int1a, I use __dpmi_int to
call it, anf some time I get a wrong hour, amazing to see your clock jumping
in a second from 14h to 22h... I see in the documentation of interrupts
(thanks Ralf Brown) that it's possible to test the CF to see if there was an
error, but with __dpmi_int I didn't see anything to test the CF... must I do
some asm ?

best regards,
laurent / France

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> a écrit dans le message news:
3BC1A620 DOT 351E1FCF AT is DOT elta DOT co DOT il...
> 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.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019