On 26/11/2014 11:40, Pavel Dovgalyuk wrote:
> +/* real time host monotonic timer implementation */
> +static inline int64_t get_clock_realtime_impl(void)
>  {
>      struct timeval tv;
>  
> @@ -708,6 +709,12 @@ static inline int64_t get_clock_realtime(void)
>      return tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000);
>  }
>  
> +/* real time host monotonic timer interface */
> +static inline int64_t get_clock_realtime(void)
> +{
> +    return REPLAY_CLOCK(REPLAY_CLOCK_HOST, get_clock_realtime_impl());
> +}
> +

Any reason to do this instead of using REPLAY_CLOCK in qemu_get_clock,
like you do for QEMU_CLOCK_VIRTUAL_RT?

Paolo

Reply via email to