From owner-freebsd-java Thu Oct 7 19:41: 2 1999 Delivered-To: freebsd-java@freebsd.org Received: from mta1.rcsntx.swbell.net (mta1.rcsntx.swbell.net [151.164.30.25]) by hub.freebsd.org (Postfix) with ESMTP id 4164514F94 for ; Thu, 7 Oct 1999 19:41:00 -0700 (PDT) (envelope-from chris@tourneyland.com) Received: from momma ([216.62.177.1]) by mta1.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.1999.09.16.21.57.p8) with SMTP id <0FJ900HW8JG9EA@mta1.rcsntx.swbell.net> for freebsd-java@freebsd.org; Thu, 7 Oct 1999 21:40:57 -0500 (CDT) Date: Thu, 07 Oct 1999 21:39:13 -0500 From: chris@tourneyland.com Subject: Re: time measurement in Java In-reply-to: <199910072357.QAA88501@bubba.whistle.com> X-Sender: pop992333@mail.9netave.net To: freebsd-java@freebsd.org Message-id: <3.0.6.32.19991007213913.00857ec0@mail.9netave.net> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Content-type: text/plain; charset="us-ascii" References: <199910071614.KAA00139@mt.sri.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >System.currentTimeMillis() returns time in milliseconds (obviously). >I don't think there's any point in measuring time any more precisely, >because of the slowness and variances in the execution of Java itself. >More precision would be 'false precision' I think.. This is perpetuating a common misconception of Java, that Java is in some way 'limited'. Java is only as limited as its implementations - and in fact, it's not even that limited, since there's always the possibility of native code. So here's a better (or at least more complete) answer - the JDK itself offers no methods for getting more precise time than milliseconds, but there maybe be a native code library or two that allow you to do better on FreeBSD. If there are not, it's not to hard to write your own. Good luck, Chris > >-Archie > >___________________________________________________________________________ >Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message