X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Futil.c;h=a2a50faa0614d873d8611db6fd4ee3179616d502;hp=8bcfa2028807422302fa543c1c1dcb9c53bd763a;hb=7c08b0b067f48e80226e6b5466fd95feb43139e6;hpb=b1c4e6a269ae4c969060e33685db12f76a204a58 diff --git a/src/util.c b/src/util.c index 8bcfa202..a2a50faa 100644 --- a/src/util.c +++ b/src/util.c @@ -25,6 +25,8 @@ #include "wimlib_internal.h" #include "endianness.h" #include "sha1.h" +#include "timestamp.h" +#include #include @@ -503,3 +505,12 @@ void print_string(const void *string, size_t len) p++; } } + +u64 get_wim_timestamp() +{ + struct timeval tv; + gettimeofday(&tv, NULL); + return timeval_to_wim_timestamp(&tv); +} + +