summaryrefslogtreecommitdiff
path: root/src/libstddjb/tain_wallclock_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/tain_wallclock_read.c')
-rw-r--r--src/libstddjb/tain_wallclock_read.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstddjb/tain_wallclock_read.c b/src/libstddjb/tain_wallclock_read.c
new file mode 100644
index 0000000..96ed861
--- /dev/null
+++ b/src/libstddjb/tain_wallclock_read.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/tai.h>
+
+int tain_wallclock_read (tain_t *a)
+{
+ tain_t aa ;
+ if (!sysclock_get(&aa)) return 0 ;
+ return tain_from_sysclock(a, &aa) ;
+}