Re: Question about stat()

From: Matti Aarnio (matti.aarnio@sonera.fi)
Date: Sat Feb 19 2000 - 10:52:06 EST


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/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:23 EST