delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/31/22:08:11

Date: Mon, 31 Mar 1997 21:51:49 -0500
Message-Id: <199704010251.VAA00444@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: john DOT k DOT murphy AT juno DOT com
CC: djgpp AT delorie DOT com
In-reply-to: <19970331.170447.12510.0.john.k.murphy@juno.com>
Subject: Re: rawclock() not working right?

> I was looking for something to seed the random # generator, and
> rawclock() looked like a good choice, since it is supposed to give the
> number of clock_ticks since midnight.  I tested it, and found out
> rawclock() gives the number of something (clock_tics?) since it's first
> call, which always returns 0.  Is this a bug in DGJPP or a mistake in the
> documentation... or does it work correctly on anybody's computer?

It's probably a documentation bug.  The other two *clock() functions
(clock and uclock) return zero the first time you call them, and
they're not documented otherwise.

- Raw text -


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