summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-02-16 00:55:06 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-02-16 00:55:06 +0200
commit03698fed18f67d1144b5ac49c148c1747621b917 (patch)
treea95d00dd57887c67377fa4234d829476cc2f6070
parent4e822a7f89787ff476fec172e57d1aab31a1740b (diff)
Use COARSE clock
We don't need the extra precision for our timestamps
-rw-r--r--glcapture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcapture.c b/glcapture.c
index a38a202..5d1b78e 100644
--- a/glcapture.c
+++ b/glcapture.c
@@ -169,7 +169,7 @@ get_time_ns_clock(clockid_t clk_id)
static uint64_t
get_time_ns(void)
{
- return get_time_ns_clock(CLOCK_MONOTONIC);
+ return get_time_ns_clock(CLOCK_MONOTONIC_COARSE);
}
static void