|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-trivial] [PATCH] rename get_clock_realtime |
Date: | Fri, 20 Jan 2012 12:39:34 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 |
On 01/20/2012 12:29 PM, Jan Kiszka wrote:
> Yeah, however, realtime is quite confusing because CLOCK_MONOTONIC is > part of the "real-time clock API". The code is much clearer than the > comment, I'll remove it completely. v2 on the way.There is CLOCK_MONOTONIC and CLOCK_REALTIME, and this function uses the latter.
Actually it uses gettimeofday, but I see what you mean.But QEMU_CLOCK_REALTIME and rt_clock refer to CLOCK_MONOTONIC and are _not_ read by get_clock_realtime. This actually is what prompted me to rename get_clock_realtime (see commit message).
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |