]> git.ipfire.org Git - thirdparty/tar.git/commit
maint: higher-precision checkpoint timestamps
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Jul 2024 16:45:46 +0000 (09:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Jul 2024 17:04:16 +0000 (10:04 -0700)
commit3d2c735b7c8ff3982812df1117597a475c7cc72f
treec27068759d9a17d579ed55ccc24369a50fabadc5
parentbd066ac0a549f4022f1305b84800db5174fedb6f
maint: higher-precision checkpoint timestamps

* src/checkpoint.c (format_checkpoint_string):
Use current_timespec to get nanosecond resolution.
This also frees us from the necessity of including <sys/time.h>
to use gettimeofday, which is removed in POSIX.1-2024.
src/checkpoint.c