A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
Joined: Jan 20, 2005
Jan 20, 2005 06:27:00
I'm completly new to
and javaranch...I would like to know if there is some timer facility I could use to know precisely the time consumes by a method ?
Thanks a lot in adavance !
Joined: Jan 06, 2005
Jan 20, 2005 06:33:00
You may try this:
long start = System.currentTimeMillis(); myMethod(); long end = System.currentTimeMillis(); long result = end - start // in msec
Think of using profilers for more complex timing.
How to do timepass?
How To Design Better Software Using FDD - November 26-27, 2008, Hamburg, Germany
Jakob Nielsen Declares the Letter "C" Unusable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014