From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GXrAY-0005mb-W7 for garchives@archives.gentoo.org; Thu, 12 Oct 2006 03:23:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9C3MjMn010684; Thu, 12 Oct 2006 03:22:45 GMT Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9C3MiY9030056 for ; Thu, 12 Oct 2006 03:22:44 GMT Received: by nf-out-0910.google.com with SMTP id x30so391513nfb for ; Wed, 11 Oct 2006 20:22:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ufhNzWY4YUc256xCPCvtoeuuw0hUDzvK6XAPLgTiLMQlbkb31jLv1ndr49KvzP7WWt0tqCnKbo2/8GKx4EdtvWFXcGIy1eETnJJ9b9EQjwsPG0laFywb/cebvSDYVCn5CXPOrnng+0NCsvbEwEvXsveWIKWPccYEVyUH0SEhhXY= Received: by 10.78.201.8 with SMTP id y8mr1688960huf; Wed, 11 Oct 2006 20:22:44 -0700 (PDT) Received: by 10.78.140.4 with HTTP; Wed, 11 Oct 2006 20:22:44 -0700 (PDT) Message-ID: <8a58bc760610112022o7f90cea8l830988fb8a318a99@mail.gmail.com> Date: Thu, 12 Oct 2006 12:22:44 +0900 From: "KIMURA Masaru / hiyuh" To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] more than 1s precise time In-Reply-To: <200610111643.12620.ladmanj@volny.cz> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200610111643.12620.ladmanj@volny.cz> X-Archives-Salt: 786ef731-6414-4482-9284-845df0829649 X-Archives-Hash: ff2ab393727fc1fe3458d054cca8e220 Hi, 2006/10/11, Jakub Ladman : > Hi there. > > Please excuse me my OT question. > > Please let me know how to get at least 0.1 second precise time. I do not need > any relation with real time, it may be time from system start or vice versa. > I need to store time to compare it with newer value in the future to detect > timeouts. [SNIP] I like select(2) for non-realtime timeout functionalities. See also, "man 2 select" and "man 2 select_tut". -- gentoo-embedded@gentoo.org mailing list