static struct timeval genesis;
static unsigned long ns_granularity;
+unsigned long long genesis_cycles;
unsigned long long utime_since(struct timeval *s, struct timeval *e)
{
return 0;
}
-static void fio_init time_init(void)
+void fio_init fio_time_init(void)
{
int i;
+ fio_clock_init();
+
/*
* Check the granularity of the nanosleep function
*/
void set_genesis_time(void)
{
fio_gettime(&genesis, NULL);
+ genesis_cycles = get_cpu_clock();
}
void fill_start_time(struct timeval *t)