qtest: replace gettimeofday with GTimer
commit20e4ae117a868c77e3e84147bd1708cdf159f8be
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Mar 2022 07:03:58 +0000 (7 11:03 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 08:50:37 +0000 (6 10:50 +0200)
tree4b14bd0c11f97ae0d7527fd657527d9d9c10e951
parent811b4ec7f8eb3fb1fe9851848ab8e3cd926b9627
qtest: replace gettimeofday with GTimer

glib provides a convenience helper to measure elapsed time. It isn't
subject to wall-clock time changes.

Note that this changes the initial OPENED time, which used to print the
current time.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220307070401.171986-3-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
softmmu/qtest.c