timer: replace time() with QEMU_CLOCK_HOST
commit2ed1ebcf65edf6757d8904000889ce52cc0a9d1b
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Fri, 27 Feb 2015 13:11:02 +0000 (27 16:11 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Feb 2015 14:15:50 +0000 (27 15:15 +0100)
treeac8d02f7527e36d4a295f2d56e57b1093387382e
parent0543055967e554b5be10c3f96c077bf26dcaf181
timer: replace time() with QEMU_CLOCK_HOST

This patch replaces time() function calls with calls to
qemu_clock_get_ns(QEMU_CLOCK_HOST). It makes such requests deterministic
in record/replay mode of icount.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <20150227131102.11912.89850.stgit@PASHA-ISP>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
vl.c