delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/13/09:58:46

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Uptime and entropy in DOS
Date: Sun, 13 Feb 2000 09:58:20 +0200
Organization: NetVision Israel
Lines: 11
Message-ID: <Pine.SUN.3.91.1000213095748.29873P-100000@is>
References: <lra6ascbh1fu2d4738d44h09kpooc8ecta AT 4ax DOT com> <38A5583C DOT EDF375B4 AT is DOT elta DOT co DOT il> <591baskf2ns6u0n0l6kp8rgml7aa2q80la AT 4ax DOT com>
NNTP-Posting-Host: is.elta.co.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 950428883 7436 199.203.121.2 (13 Feb 2000 08:01:23 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 13 Feb 2000 08:01:23 GMT
X-Sender: eliz AT is
In-Reply-To: <591baskf2ns6u0n0l6kp8rgml7aa2q80la@4ax.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 12 Feb 2000, Damian Yerrick wrote:

> >Did you try `uclock' or `gettiomeofday'?  It's in the FAQ (section 22.23).
> 
> uclock() won't work because it measures uptime of the current process,

That's because it stores the time it measures on the first call and
then subtracts it from subsequent readings.  But you could take the
source of `uclock' and modify it to not subtract that first reading.
Then you'll get what you want.

- Raw text -


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