X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftimestamp.h;h=406f6a5db7f34f929b4f6dc4492bef0556a96c78;hb=85c0b4fc1f9600630e063316e85e8a92abef4cf3;hp=6b54954d96bf0aff384fbdd47ac4fb1fb5c5a58a;hpb=a8702d79a670941d313ec611c2ff7374c3005ddb;p=wimlib diff --git a/src/timestamp.h b/src/timestamp.h index 6b54954d..406f6a5d 100644 --- a/src/timestamp.h +++ b/src/timestamp.h @@ -4,6 +4,7 @@ #include "util.h" #include #include +#include #define intervals_per_second (1000000000ULL / 100ULL) #define intervals_per_microsecond (10) @@ -51,7 +52,7 @@ static inline u64 timespec_to_wim_timestamp(const struct timespec *ts) + (u64)ts->tv_nsec / nanoseconds_per_interval; } - extern u64 get_wim_timestamp(); +extern void wim_timestamp_to_str(u64 timestamp, char *buf, size_t len); #endif