ShellPerfLog: Use monotonic timestamps for logging
Use g_get_monotonic_time() (that is, CLOCK_MONOTONIC) timestamps, rather than gettimeofday() values. https://bugzilla.gnome.org/show_bug.cgi?id=732350
This commit is contained in:
parent
a7f82745c6
commit
f0d4260c81
@ -126,11 +126,7 @@ G_DEFINE_TYPE(ShellPerfLog, shell_perf_log, G_TYPE_OBJECT);
|
||||
static gint64
|
||||
get_time (void)
|
||||
{
|
||||
GTimeVal timeval;
|
||||
|
||||
g_get_current_time (&timeval);
|
||||
|
||||
return timeval.tv_sec * G_GINT64_CONSTANT(1000000) + timeval.tv_usec;
|
||||
return g_get_monotonic_time ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user