From owner-freebsd-hackers@FreeBSD.ORG Thu May 17 03:54:46 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3D471065670 for ; Thu, 17 May 2012 03:54:46 +0000 (UTC) (envelope-from jhellenthal@dataix.net) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8A7B18FC14 for ; Thu, 17 May 2012 03:54:46 +0000 (UTC) Received: by yenl8 with SMTP id l8so1792729yen.13 for ; Wed, 16 May 2012 20:54:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=sPjSnZIDZ3A7+RyELg3JQKMhVB2qOTLIPaZLb4rxbzw=; b=KdAdf0qFWmp5+QrvJG294yXhZjsNRW+P6A6YYDA/fAQu5OwPeY+FHN5Dx6yCSG0q+n y9mLxyRKHsOTmXcEqk93uvmv69JZek2k5Hnlbw9lnT+3UPzeOKe817GBj/0F2oNNXUU0 LOilL+PHa98lR9ynJGIQx/24L24Tho7RBcNCM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=sPjSnZIDZ3A7+RyELg3JQKMhVB2qOTLIPaZLb4rxbzw=; b=WI3Ne7d9DV8bET4lMy1bFiUYC70buT9H211FC0cU/41w7bviXiEn/pqdyejEw3oDxv VmyCpCEKWI75N21HSo3/UVhq1wAPBJOvM7CGkKkfypqiM+gnp9Bldbq0NSDMpAJ3ECLw 9Z3rIci3HoX7h3aNDTB5P1bYC783gAup+U7UVJMWFidDfMnEjes8PVr1e2s+YUIEQubQ mSI1g3PZM/B5ninQ8A7Jo9kgbH3ODeHM5MbWA1pA0+4bzpQ9Fbw022YnLlkC8iV8jpAI FjIgQROuAqpZe5+3r836/q6b4IPiwcIu52jwyM9q5tsEb3M/qTs41mIW5FJ97ACHiBqq 4KCA== Received: by 10.50.12.199 with SMTP id a7mr11802839igc.71.1337226885761; Wed, 16 May 2012 20:54:45 -0700 (PDT) Received: from DataIX.net (24-247-238-117.dhcp.aldl.mi.charter.com. [24.247.238.117]) by mx.google.com with ESMTPS id eo5sm9872669igc.7.2012.05.16.20.54.44 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 20:54:45 -0700 (PDT) Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q4H3sgXl062190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 May 2012 23:54:42 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Received: (from jhellenthal@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q4H3sfsH059444; Wed, 16 May 2012 23:54:41 -0400 (EDT) (envelope-from jhellenthal@DataIX.net) Date: Wed, 16 May 2012 23:54:41 -0400 From: Jason Hellenthal To: hackers@FreeBSD.org Message-ID: <20120517035441.GA91666@DataIX.net> References: <4FB41523.2000106@brandonfa.lk> <4FB457EC.20908@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gm-Message-State: ALoCoQkJZkM5moiAaAwDKD3vkMT4XA+GVkgRbVbKXMYlczOBaBzWEt8FzrI36Q/RxADnss9Igv0e Cc: Bruce Evans , davidxu@FreeBSD.org, Brandon Falk Subject: Re: High-res Timers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2012 03:54:47 -0000 > >> > >> Does anyone have a quick list of high-resolution timer functions? Both > >> user-land and kernel-land? It would be greatly appreciated (doing some > >> performance timing for applications). > >> clocks(7) - various system timers getitimer(2), setitimer(2) - get/set value of interval timer see ( man -k timer ) list for some other references. I am not sure what sort of high resolution you are refering to but maybe these will lead you in the right direction. Bruce Evans CCd - he may have quite a bit that could be added to this. I always find what he has to say very enlightening. -- - (2^(N-1))