lkml.org 
[lkml]   [2000]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question about stat()
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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.061 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site