On 01/08/2012 04:49 PM, Takuya Yoshikawa wrote: > > > + > > > + gettimeofday(&start_time, NULL); > > > + slot.update_dirty_log(); > > > + gettimeofday(&end_time, NULL); > > > > Nicer to have a function that returns time in nanoseconds. > > I don't know such an API which can be used in userspace. static uint64_t time_ns() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * (uint64_t)1000000000 + tv.tv_usec * 1000; } (that's not nanosecond precision, but it gives a single number instead of a pair; there's also clock_gettime() that does have nanosecond precision). > If we can use nano-precision timer, I want to check other things > too, e.g. emulation. > -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html