|
From: | Laurent Vivier |
Subject: | Re: [PATCH 2/4] qtest: replace gettimeofday with GTimer |
Date: | Fri, 4 Mar 2022 16:55:14 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
Le 04/03/2022 à 16:54, Laurent Vivier a écrit :
Le 04/03/2022 à 16:27, marcandre.lureau@redhat.com a écrit :From: Marc-André Lureau <marcandre.lureau@redhat.com> 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.Time is printed using FMT_timeval ("%ld.%06ld"), but g_timer_elapsed() returns a gdouble. Are you sure it works properly?
Sorry, I missed this part:
-#define FMT_timeval "%ld.%06ld" +#define FMT_timeval "%.06f"
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
[Prev in Thread] | Current Thread | [Next in Thread] |