delorie.com/archives/browse.cgi | search |
From: | bdarnell AT vnet DOT net (Ben Darnell) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: rawclock returning incorrect (?) values |
Date: | Sun, 09 Mar 1997 05:17:06 GMT |
Organization: | Vnet Internet Access, Inc. |
Lines: | 15 |
Message-ID: | <3322454c.13373115@news.vnet.net> |
References: | <5fpiuk$ebg AT mn5 DOT swip DOT net> |
NNTP-Posting-Host: | vts-char6-s14.vnet.net |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Sat, 08 Mar 1997 02:24:10 GMT, ville DOT sjoberg AT swipnet DOT se (Ville Sjoberg) wrote: >I'm having trouble with the rawclock() function. According to the docs >it should return the number of tics since midnight. That should make a >pretty good function for srandom(), I thought. But the following code: The docs are wrong on this one. rawclock() returns the number of tics since the first time you called it (i.e. it always returns 0 the first time) __ __ /> /_ /| / /\ /| /> /| / /_ / / /> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_ http://users.vnet.net/bdarnell bdarnell AT vnet DOT net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |