File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
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-2015