function for clockticks since 1980?
- From: nsa.usa@xxxxxxxxx
- Date: Sat, 28 Jul 2007 16:52:37 -0700
Hi,
I used to use a function in other languages (TP or asm don't remember)
where I could get number of clockticks since 1980. Is there a similar
function in C? I don't seem to find it.
I need to seed the random generator and since it's a web-server app, I
can't seed with the date/time because the resolution is not great
enough. If the app runs twice in the same second (or millisecond or
whatever the resolution is) then the random generator will be seeded
with the same value! not good. Also don't want to use clockticks
processor has used so far to run the program. It seems to me this
function of ticks since 1980 is what I need, or another guranteed
incremental value.
Thanks.
Tobias
.
- Follow-Ups:
- Re: function for clockticks since 1980?
- From: Walter Roberson
- Re: function for clockticks since 1980?
- From: Ben Bacarisse
- Re: function for clockticks since 1980?
- From: swengineer001@xxxxxxxxx
- Re: function for clockticks since 1980?
- Prev by Date: Re: double to int weirdness
- Next by Date: Re: function for clockticks since 1980?
- Previous by thread: double to int weirdness
- Next by thread: Re: function for clockticks since 1980?
- Index(es):
Relevant Pages
|