diff options
Diffstat (limited to 'src/mytime.h')
| -rw-r--r-- | src/mytime.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mytime.h b/src/mytime.h index 48eba06..ce270ad 100644 --- a/src/mytime.h +++ b/src/mytime.h @@ -10,3 +10,12 @@ struct timespec get_current_time(); void enable_fake_time(); void progress_time(uint64_t diff); + +struct timespec time_from_double(double t); + +struct formatted_time { + char buf[32]; +}; +struct formatted_time format_time(struct timespec time); +struct formatted_time format_duration(struct timespec time); +struct timespec time_sub(const struct timespec *t1, const struct timespec *t2); |
