Re: Question for Windows/BeOS Developers. [BeOS only]


Subject: Re: Question for Windows/BeOS Developers. [BeOS only]
baron.users@free.fr
Date: Wed Aug 23 2000 - 03:12:36 CDT


> In Unix I can do
>
> srand( (UT_uint32) time())
>
> Since time always increases
> this will always work :-)

Humm... I think time have always increased in BeOS
too (until now, I mean, I should check that in the future
again :-)...
So I gess this solution sould work on BeOS too IF you use
uint32 real_time_clock (void) instead of time()
This function is defined in be/kernel/OS.h

[From the BeBook : real_time_clock() returns the number of seconds
that have elapsed since January 1, 1970.]

Stephane



This archive was generated by hypermail 2b25 : Wed Aug 23 2000 - 03:12:43 CDT