[gtk] profiler: Prefer CLOCK_MONOTONIC
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] profiler: Prefer CLOCK_MONOTONIC
- Date: Wed, 15 May 2019 17:53:01 +0000 (UTC)
commit 45b552d146fd82983816bfc87bbe374adaead842
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 15 13:52:12 2019 -0400
profiler: Prefer CLOCK_MONOTONIC
This is what g_get_monotonic_time gives us,
after all, and we need to have the same clock
in all our profiler data.
gdk/capture/sp-clock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/capture/sp-clock.c b/gdk/capture/sp-clock.c
index 8811ac44ca..b53dafb741 100644
--- a/gdk/capture/sp-clock.c
+++ b/gdk/capture/sp-clock.c
@@ -24,9 +24,9 @@ void
sp_clock_init (void)
{
static const gint clock_ids[] = {
+ CLOCK_MONOTONIC,
CLOCK_MONOTONIC_RAW,
CLOCK_MONOTONIC_COARSE,
- CLOCK_MONOTONIC,
CLOCK_REALTIME_COARSE,
CLOCK_REALTIME,
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]