aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-06 03:41:00 +0200
committerMattias Andrée <maandree@kth.se>2016-08-06 03:41:00 +0200
commitd17014d2718c4543bc8571f088c58fadceeabce5 (patch)
tree4afabd32050d886cfd560e913a77782354af2194 /src
parentAdd cg-rainbow (diff)
downloadcg-tools-d17014d2718c4543bc8571f088c58fadceeabce5.tar.gz
cg-tools-d17014d2718c4543bc8571f088c58fadceeabce5.tar.bz2
cg-tools-d17014d2718c4543bc8571f088c58fadceeabce5.tar.xz
doc
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-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