Reading mtime (stat) to microsecond accuracy

Fair enough, we’re just trying to help you better. :slight_smile:

Since you just want to catch writes that somehow slip the inotify net (how? :smiley:), I think the quickest way forward is to read the whole file and compare it with the cached version or a checksum thereof. If the files are reasonably small it shouldn’t be much more expensive than checking modification time and you won’t have to think about how to get a more accurate timestamp, so why not check if it works well enough?