X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Ftimestamp.h;h=406f6a5db7f34f929b4f6dc4492bef0556a96c78;hb=25319f526c1922b0bfa33e1f954bb628937070b0;hp=6f08fc2e03fe641d993eabbedb684dee442212df;hpb=14c65f15f708c27dc434db1f0d112fad2a0b007c;p=wimlib diff --git a/src/timestamp.h b/src/timestamp.h index 6f08fc2e..406f6a5d 100644 --- a/src/timestamp.h +++ b/src/timestamp.h @@ -3,6 +3,8 @@ #include "util.h" #include +#include +#include #define intervals_per_second (1000000000ULL / 100ULL) #define intervals_per_microsecond (10) @@ -50,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