Mail Archives: djgpp/1999/03/01/11:51:11

Date: Mon, 1 Mar 1999 10:58:43 -0500
Message-Id: <>
X-Authentication-Warning: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <> (message from Endlisnis on Sun, 28 Feb
1999 18:59:49 -0400)
Subject: Re: randomness
References: <36d335f8 DOT 5674902 AT news DOT demone1 DOT ia DOT home DOT com> <920167422 DOT 21612 DOT 0 DOT rover DOT d4ee0fa5 AT news DOT demon DOT nl> <36D9CA65 DOT 2BB04764 AT unb DOT ca>
Reply-To: djgpp AT delorie DOT com

> > srand (inportb (0x40));
>     What is port 0x40?

0x40 and 0x41 are the microsecond counters used by uclock().

0x40 is the LSB and increments about once per 838ns, starting when the
computer boots.

- Raw text -

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