2 #include <mach/mach_time.h>
17 static mach_timebase_info_data_t sTimebaseInfo;
18 absNano = mach_absolute_time();
19 if ( sTimebaseInfo.denom == 0 ) {
20 (void) mach_timebase_info(&sTimebaseInfo);
22 t = (double) absNano * 1.e-09*
23 (sTimebaseInfo.numer / sTimebaseInfo.denom);
34 t1 = 1.e+09*frexp(t1, &zero);
36 iseed = (int)(1.e+05*t1);
int time_seeder()
Uses the timer to generate a seed to be used for srand.
double evsl_timer()
evsl timer for mac