On 2026-08-20 17:26:01 -0400, Reed Underwood wrote:
> Would it be preferable to just use gettimeofday (or another function that
> guarantees subsecond precision) and use only the seconds?

gettimeofday is no longer in any standard. It was replaced by
clock_gettime. But anyway, it is not possible to know which clock
is the same as the one used for the filesystem. Since the value
will be compared to st_mtime from stat(), it is better to also
use stat() for the comparison.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to