On 04/15/2010 02:13 AM, malc wrote:
> > > > +static uint64_t get_monotonic_time(void) > > > > +{ > > > > + struct timespec time_space; > > > > + clock_gettime(CLOCK_MONOTONIC,&time_space);> > a. The presence of monotonic clock is not guranteed> > There is qemu_get_clock_ns(rt_clock).Sorry, but what does it have to do with anything?
It is exactly the same as Gerd's function plus a fallback if no monotonic clock is available.
Paolo