Re: Read System Clock in Windows
- From: Richard Heathfield <invalid@xxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 22:27:28 +0000
Moikel said:
Hello,
I'm writing a program that requires that I generate random numbers. I'm
using the C rand()function. I want to use the system clock as a seed
for the function.
http://c-faq.com/lib/srand.html
How do I read the system clock in Windows?
time()
(Please
state any libraries I'm going to need etc).
The standard library, which is linked in by default so you don't need to
worry about it.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
.
- Follow-Ups:
- Re: Read System Clock in Windows
- From: Barry Schwarz
- Re: Read System Clock in Windows
- References:
- Read System Clock in Windows
- From: Moikel
- Read System Clock in Windows
- Prev by Date: Re: Amazon used lisp & C exclusively? (clc,cll)
- Next by Date: Re: Amazon used lisp & C exclusively? (clc,cll)
- Previous by thread: Read System Clock in Windows
- Next by thread: Re: Read System Clock in Windows
- Index(es):
Relevant Pages
|