summary refs log tree commit diff stats
path: root/c/gigasecond/src
diff options
context:
space:
mode:
Diffstat (limited to 'c/gigasecond/src')
-rw-r--r--c/gigasecond/src/gigasecond.c5
-rw-r--r--c/gigasecond/src/gigasecond.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/c/gigasecond/src/gigasecond.c b/c/gigasecond/src/gigasecond.c
new file mode 100644
index 0000000..1cfd585
--- /dev/null
+++ b/c/gigasecond/src/gigasecond.c
@@ -0,0 +1,5 @@
+#include "gigasecond.h"
+
+time_t gigasecond_after(time_t cur) {
+    return cur + 1000000000;
+}
diff --git a/c/gigasecond/src/gigasecond.h b/c/gigasecond/src/gigasecond.h
new file mode 100644
index 0000000..2c8a3bc
--- /dev/null
+++ b/c/gigasecond/src/gigasecond.h
@@ -0,0 +1,8 @@
+#ifndef GIGASECOND_H
+#define GIGASECOND_H
+
+#include <time.h>
+
+time_t gigasecond_after(time_t cur);
+
+#endif