[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "random" number seeds vs. Netscape



At 05:01 PM 9/20/95 -0400, Perry E. Metzger wrote:

>PC timers inherently run at Mhz speed -- they interrupt every 100th of
>a second but you can get finer resolution by querying the clock
>chip. Does Windows let you do this?

Yes:  1.196 MHz precision.

The VTD maintains a 64-bit value that is accurate to 0.8 microseconds. This
value is obtained by calling the VTD with AX set to 0100h. The 64-bit value
is returned in EDX:EAX. The returned value indicates the time Windows has
been running based on a 1.196 MHz clock.
 ---------------------------------------------------------------------
              				|  
We have the right to defend ourselves	|   http://www.jim.com/jamesd/
and our property, because of the kind	|  
of animals that we are. True law	|   James A. Donald
derives from this right, not from the	|  
arbitrary power of the state.		|   [email protected]