In Java VisualVM, is there any way to display total method time, rather than \"self time\"? (The latter is not particularly useful, since it doesn\'t tell you anything about
you could use a
long startTime = System.currentTimeMillis();
at the beggining
and
long endTime = System.currentTimeMillis();
and finally to get the result
long result = endTime - startTime; //Note, part might be backwards, I don't //Remember