Re: Question about stat()

Matti Aarnio (matti.aarnio@sonera.fi)
Sat, 19 Feb 2000 17:52:06 +0200


On Sat, Feb 19, 2000 at 03:14:52PM +0000, Alex Buell wrote:
> I've been playing with stat() for a while. During my experiments I noticed
> that stat()'s st_atime, st_mtime and st_ctime seems to be accurate down to
> the nearest second.
>
> Is there any way I can get much more accuracy than that for files?

No.

See filesystems, some might support micro/nanosecond timers
too, but there are even ones which support 2sec granularity
(DOS FAT).

The VFS layer carries only time_t object for files, so even
if FS supplies finer granularity, you can't get it thru the
VFS..

> Cheers,
> Alex
> --

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/