Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964800AbVLFSAq (ORCPT ); Tue, 6 Dec 2005 13:00:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964807AbVLFSAp (ORCPT ); Tue, 6 Dec 2005 13:00:45 -0500 Received: from mf00.sitadelle.com ([212.94.174.67]:25402 "EHLO smtp.cegetel.net") by vger.kernel.org with ESMTP id S964800AbVLFSAp (ORCPT ); Tue, 6 Dec 2005 13:00:45 -0500 Message-ID: <4395D1C2.2040909@cosmosbay.com> Date: Tue, 06 Dec 2005 19:00:34 +0100 From: Eric Dumazet User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Andi Kleen Cc: David Engraf , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Win32 equivalent to GetTickCount systemcall (i386) References: <1133871202.3664.34.camel@tara.firmix.at> <000201c5fa60$52bb53e0$0a016696@EW10> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 731 Lines: 22 Andi Kleen a ?crit : > "David Engraf" writes: > >>times has only 10ms resolution, we need at least 1ms. > > > It actually has jiffies resultion. Your measurements must have been > quite off. I beg to differ: times has a 10 ms resolution ( ie 1/USER_HZ) times() is supposed to return clock_t expressed in USER_HZ, wich is still 100, regardless of the kernel HZ I just checked sources and sys_times() do use jiffies_64_to_clock_t() Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/