aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-rainbow.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cg-rainbow.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cg-rainbow.c b/src/cg-rainbow.c
index 93009f9..b60c860 100644
--- a/src/cg-rainbow.c
+++ b/src/cg-rainbow.c
@@ -199,6 +199,12 @@ LIST_DEPTHS
}
+/**
+ * Get the current monotonic time as a double
+ *
+ * @param now Output parameter for the current time (monotonic)
+ * @return Zero on success, -1 on error
+ */
static int double_time(double* restrict now)
{
#ifndef CLOCK_MONOTONIC_RAW