Re: Read System Clock in Windows
- From: Barry Schwarz <schwarzb@xxxxxxxxx>
- Date: Fri, 14 Jul 2006 21:27:56 -0700
On Fri, 14 Jul 2006 22:27:28 +0000, Richard Heathfield
<invalid@xxxxxxxxxxxxxxx> wrote:
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.
But the OP should be concerned about including the correct header.
Remove del for email
.
- References:
- Read System Clock in Windows
- From: Moikel
- Re: Read System Clock in Windows
- From: Richard Heathfield
- Read System Clock in Windows
- Prev by Date: Re: Does malloc() reuse addresses?
- Next by Date: Re: Largest Palindrome
- Previous by thread: Re: Read System Clock in Windows
- Next by thread: Re: Read System Clock in Windows
- Index(es):
Relevant Pages
|