function for clockticks since 1980?



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

.



Relevant Pages

  • Re: function for clockticks since 1980?
    ... where I could get number of clockticks since 1980. ... I need to seed the random generator and since it's a web-server app, ... whatever the resolution is) then the random generator will be seeded ...
    (comp.lang.c)
  • Re: function for clockticks since 1980?
    ... where I could get number of clockticks since 1980. ... I need to seed the random generator and since it's a web-server app, ... whatever the resolution is) then the random generator will be seeded ...
    (comp.lang.c)
  • Re: function for clockticks since 1980?
    ... where I could get number of clockticks since 1980. ... I need to seed the random generator and since it's a web-server app, ... whatever the resolution is) then the random generator will be seeded ...
    (comp.lang.c)
  • Re: function for clockticks since 1980?
    ... where I could get number of clockticks since 1980. ... I need to seed the random generator and since it's a web-server app, ... Since there is not ideal portable solution, your best bet may well be ... platform on which a web application might run. ...
    (comp.lang.c)