Read file timestamps in higher resolution.

This uses nanoseconds on POSIX (±~292 years) and 100-ns increments on
Windows (±~29247 years).

The fallbacks to different structure fields is the only thing grabbed
from #337, with a slight modification in implementation.
1 file changed