www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/28/18:39:24

Date: Thu, 29 Feb 1996 07:25:16 -0800 (GMT)
From: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: Erik Luijten <erik AT tntnhb3 DOT tn DOT tudelft DOT nl>, djgpp <djgpp AT delorie DOT com>
Subject: Re: time measurement in protected mode?
In-Reply-To: <Pine.SUN.3.91.960228140643.12328B-100000@is>
Message-ID: <Pine.SOL.3.91.960229072411.505A-100000@gollum>
MIME-Version: 1.0

On Wed, 28 Feb 1996, Eli Zaretskii wrote:

> 
> clock() doesn't switch to real mode (it just peeks at a certain address 
> in the BIOS data area).  If you need to measure time for longer than 24 
> hours, you can augment clock() with gettimeofday() (which you can then 
> call once every 24 hours or so).
> 

What about alarm() ? what method does this function use to get the time? 
and setitimer () ?

                                             ------------------------
                                              Orlando A. Andico
                                              oandico AT eee DOT upd DOT edu DOT ph
                                             ------------------------

- Raw text -


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