From owner-freebsd-hackers Thu Jan 28 11:32:28 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA29319 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 11:32:28 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA29308 for ; Thu, 28 Jan 1999 11:32:24 -0800 (PST) (envelope-from wilko@yedi.iaf.nl) Received: by uni4nn.gn.iaf.nl with UUCP id AA09530 (5.67b/IDA-1.5); Thu, 28 Jan 1999 20:15:13 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.8/8.6.12) id TAA00596; Thu, 28 Jan 1999 19:45:12 +0100 (CET) From: Wilko Bulte Message-Id: <199901281845.TAA00596@yedi.iaf.nl> Subject: Re: Device statistics In-Reply-To: <199901280005.RAA54630@panzer.plutotech.com> from "Kenneth D. Merry" at "Jan 27, 99 05:05:54 pm" To: ken@plutotech.com (Kenneth D. Merry) Date: Thu, 28 Jan 1999 19:45:12 +0100 (CET) Cc: pantzer@ludd.luth.se, freebsd-hackers@FreeBSD.ORG X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL38 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As Kenneth D. Merry wrote... > Mattias Pantzare wrote... > > as getmicrouptim but in userspace? > > Try the kern.boottime sysctl variable. That's what w/uptime uses to figure > out how long the machine has been up. > > You can subtract the current time from the boot time to get the uptime. > > I used getmicrouptime(), since it increases monotonically, unlike the > regular system time. (e.g., you're running xntpd, and it steps the time > back some) > > > Current temperature 99-01-28 00:19:17 -40.7 degrees Celsius (-41.2F) > > Wow, is that temperature accurate? No. It might be too high (according to the newspaper I just read) ;-) Wilko _ ______________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl |/|/ / / /( (_) Arnhem, The Netherlands WWW : http://www.tcja.nl ______________________________________________ Powered by FreeBSD __________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message