From dev-return-4661-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Fri Oct 12 20:59:20 2001 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 62592 invoked by uid 500); 12 Oct 2001 20:59:20 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 62581 invoked from network); 12 Oct 2001 20:59:19 -0000 Date: Fri, 12 Oct 2001 13:59:22 -0700 (PDT) From: Dirk-Willem van Gulik X-X-Sender: dirkx@titatovenaar.sfo.covalent.net To: dev@apr.apache.org Subject: Re: Granularity of mtime In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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. Dw.