Le 04/03/2022 à 16:54, Laurent Vivier a écrit :
Le 04/03/2022 à 16:27, [email protected] a écrit :
From: Marc-André Lureau <[email protected]>

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 <[email protected]>

Reply via email to