From owner-freebsd-chat Sat Nov 18 11:33:11 2000 Delivered-To: freebsd-chat@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 2DE4837B479 for ; Sat, 18 Nov 2000 11:33:09 -0800 (PST) Received: from foo.osd.bsdi.com (root@foo.osd.bsdi.com [204.216.28.137]) by pike.osd.bsdi.com (8.11.0/8.9.3) with ESMTP id eAIJVoB29869; Sat, 18 Nov 2000 11:31:50 -0800 (PST) (envelope-from jhb@foo.osd.bsdi.com) Received: (from jhb@localhost) by foo.osd.bsdi.com (8.11.1/8.11.0) id eAIJSOg14719; Sat, 18 Nov 2000 11:28:24 -0800 (PST) (envelope-from jhb) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3A160633.CFAE57F8@softweyr.com> Date: Sat, 18 Nov 2000 11:28:24 -0800 (PST) Organization: BSD, Inc. From: John Baldwin To: Wes Peters , chat@FreeBSD.org Subject: Re: new monotime() call for all architectures. Cc: Nate Williams , mark@grondar.za, Jonathan Lemon Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 18-Nov-00 Wes Peters wrote: > John Baldwin wrote: >> >> On 17-Nov-00 Jonathan Lemon wrote: >> > On Fri, Nov 17, 2000 at 01:08:16PM -0700, Nate Williams wrote: >> >> > >> >> Ok, I just thought the "mono" in his function name is for >> >> > >> >> monotonic. >> >> > >> >> If >> >> > >> >> you are staying on one processor it will work, but if the >> >> > >> >> timestamps >> >> > >> >> have scheduling inbetween the timestamps and you land on a >> >> > >> >> different >> >> > >> >> processor it won't be monotonic anymore. >> >> > >> > >> >> > >> >It's close enough. :) >> >> > >> >> >> > >> If it isn't dealing properly with async PCC/TSC counters on SMP >> >> > >> machines >> >> > >> it shouldn't be called "monoanyting". >> >> > >> >> >> > >> I guess I totally object to the name now :-) >> >> > > >> >> > >OK, how about bogotime(9)? ;) >> >> > >> >> > It's not returning units of any known time. "bogocount()" maybe... >> >> >> >> How about 'slushycounter()'? >> > >> > falseticker()? (Okay, probably too NTP specfic) >> >> Let's just go back to CS 101 days and call it my_function(). > > Sorry, Mr. Baldwin, you just got a "D" in your assignment. Good thing I've already graduated then. :) > Since the function appears to return an increasing nonsensical counter, > "foo" seems somehow appropriate. Depends on what school you attended. 'qux' is another decent candidate. :-P -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message