Date: Tue, 04 Mar 2003 12:58:25 -0500 From: Jan Knepper <jan@digitaldaemon.com> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 'ticks' in kernel. Message-ID: <3E64E941.3030205@digitaldaemon.com> In-Reply-To: <20030304.080123.34121962.imp@bsdimp.com> References: <3E64301E.5050901@digitaldaemon.com> <20030304.080123.34121962.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <jan@digitaldaemon.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E64E941.3030205>