From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 20 00:46:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9446F16A4CE for ; Thu, 20 Jan 2005 00:46:02 +0000 (GMT) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B43443D5A for ; Thu, 20 Jan 2005 00:46:02 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.1/8.13.1) with ESMTP id j0K0k19P033171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 19 Jan 2005 16:46:01 -0800 (PST) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.1/8.13.1/Submit) id j0K0k1fU033170; Wed, 19 Jan 2005 16:46:01 -0800 (PST) (envelope-from steve) Message-Id: <200501200046.j0K0k1fU033170@wattres.watt.com> X-Newsgroups: local.freebsd-hackers In-Reply-To: <20050120004406.GF921@einstein.lab> Organization: Watt Consultants From: steve@Watt.COM (Steve Watt) Date: Wed, 19 Jan 2005 16:46:01 -0800 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: mark@remotelab.org X-Archived: 1106181961.847461158@wattres.Watt.COM cc: hackers@freebsd.org Subject: Re: clock time in milliseconds into a c program X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2005 00:46:02 -0000 In article <20050120004406.GF921@einstein.lab> you write: > >Hi, I need to clock the function execution time into a C >program. I know /usr/include/time.h library but I need to >clock the time in milliseconds. > >Any suggestions, links? % man clock_gettime Is nanoseconds too much? -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW32 Free time? There's no such thing. It just comes in varying prices...