apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@covalent.net>
Subject Re: Granularity of mtime
Date Fri, 12 Oct 2001 20:59:22 GMT

On Fri, 12 Oct 2001, Dirk-Willem van Gulik wrote:

> On some versions of Linux/Solaris fstat(2) gives you a second granularity
> of mtime/atime/ctime. On some other OS-es/versions you get mSec's.
> Is there a way to ask APR what the granularity is ?

Just to clarify - I want to put a 'sleep()' into my code which is long
enough to guarantee that the mtime() of some file created is different
of the current time when we come out of the routine.


View raw message