From: Eli Zaretskii 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: References: <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 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.