delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/05/20:28:10

Date: Thu, 5 Jun 1997 17:26:30 -0700 (PDT)
Message-Id: <199706060026.RAA22763@adit.ap.net>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: rawclock() problem

Has anybody noticed that rawclock() does not do the right thing? Docs say it
returns timer ticks since midnight. Actually it returns timer ticks since
first called. This makes it redundant, since that's basically what clock()
does. Also, you can't use it for srandom(). I realize time(NULL) does
approximately the same thing, but rawclock ought to do *something* useful.

I have a patch to make it do the right thing if anybody is interested.
					--Nate <eldredge AT ap DOT net>


- Raw text -


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