diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-07 13:04:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-07 13:04:11 -0500 |
commit | 3139cbc56a08ac76bccfe223dd2669f3f080c927 (patch) | |
tree | 0276d073a6494a50382c5a86f2434691190705bf /src/xtime.h | |
parent | ddfe02342f89703e723699238a424396204aa1cf (diff) | |
download | bfs-3139cbc56a08ac76bccfe223dd2669f3f080c927.tar.xz |
xtime: Move parse_gettime() to xgettime()
Diffstat (limited to 'src/xtime.h')
-rw-r--r-- | src/xtime.h | 10 |
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 |