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.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
Jakob Nielsen Declares the Letter "C" Unusable
How to do timepass?
How To Design Better Software Using FDD - November 26-27, 2008, Hamburg, Germany
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013