Uses fstat() instead of stat() to get the nanosecond timestamp.