[misc] Add function to add a relative time to current clock

This commit is contained in:
ejurgensen
2017-01-15 23:19:57 +01:00
parent 9aede45a12
commit 6db4e40119
2 changed files with 19 additions and 0 deletions

View File

@@ -145,6 +145,9 @@ timespec_add(struct timespec time1, struct timespec time2);
int
timespec_cmp(struct timespec time1, struct timespec time2);
struct timespec
timespec_reltoabs(struct timespec relative);
/* initialize mutex with error checking (not default on all platforms) */
int
mutex_init(pthread_mutex_t *mutex);