>I think adding such a calibration to get_cpu_mhz()
>so we can warn if /proc/cpuinfo data doesn't agree with
>gettimeofday() and get_cycles().
using below to calculate the cycles_to_unit is more accurate.
clock_gettime();
get_cycles();
sleep(5);
clock_gettime();
get_cycles();
cycles_to_unit = offset - cycles/ offset - time;
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638
_______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
