Debug: how long did the process took (Time)
//At start of the code (start of process)
final long start = System.currentTimeMillis();
//At the end of the code (end of process)
long milliseconds = System.currentTimeMillis() - start;
long seconds = milliseconds/1000;
LOG.debug("Total search took: " + milliseconds + "Milliseconds || " + seconds + "Seconds");
Written by Otto Vanluchene
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Java
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#