From owner-freebsd-hackers Tue Mar 4 9:53:17 2003 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 67ADE37B401 for ; Tue, 4 Mar 2003 09:53:15 -0800 (PST) Received: from digitaldaemon.com (digitaldaemon.com [63.105.9.34]) by mx1.FreeBSD.org (Postfix) with SMTP id 6747F43F85 for ; Tue, 4 Mar 2003 09:53:14 -0800 (PST) (envelope-from jan@digitaldaemon.com) Received: (qmail 14486 invoked from network); 4 Mar 2003 17:51:38 -0000 Received: from unknown (HELO digitaldaemon.com) (192.168.0.220) by digitaldaemon.com with SMTP; 4 Mar 2003 17:51:38 -0000 Message-ID: <3E64E941.3030205@digitaldaemon.com> Date: Tue, 04 Mar 2003 12:58:25 -0500 From: Jan Knepper Organization: http://www.digitaldaemon.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M. Warner Losh" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 'ticks' in kernel. References: <3E64301E.5050901@digitaldaemon.com> <20030304.080123.34121962.imp@bsdimp.com> In-Reply-To: <20030304.080123.34121962.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG No, I have looked that those, they do not work for me as I need to be able to compate the value if 'ticks' with a value initialized from 'ticks'. The problems is that 'ticks' is not 'exact'. So I cannot calculate it with the different between the boot time and the current time * a constant factor. Any ideas? Might patching (adding it to) sysctl be a thing to consider or would that cause security issue's? Thanks! Jan M. Warner Losh wrote: >In message: <3E64301E.5050901@digitaldaemon.com> > Jan Knepper writes: >: Any one have an idea how to pull the value for 'ticks' (kern_clock.c) >: from the kernel? >: I have looked into sysctl, but could not find "how to". >: I am overlooking something? > >Why? > >You'll likely want to look at one of: > getmicrouptime > tsleep > msleep > getmicrotime > >Warner > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message