summaryrefslogtreecommitdiffstats
path: root/src/xtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xtime.h')
-rw-r--r--src/xtime.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xtime.h b/src/xtime.h
index cca1428..b49cd04 100644
--- a/src/xtime.h
+++ b/src/xtime.h
@@ -83,4 +83,14 @@ int xtimegm(struct tm *tm, time_t *timep);
*/
int xgetdate(const char *str, struct timespec *result);
+/**
+ * Get the current time.
+ *
+ * @param[out] result
+ * A pointer to the result.
+ * @return
+ * 0 on success, -1 on failure.
+ */
+int xgettime(struct timespec *result);
+
#endif // BFS_XTIME_H