Make a single call to `Date.now()` and cache it before you set atime and mtime so that they are guaranteed to have the same value.