Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stopwatch stopwatch = Stopwatch.createStarted();
- // do lengthy operation here
- long elapsed = stopwatch.elapsed(TimeUnit.MILLISECONDS);
- logger.debug(String.format("operation foo took %d ms", elapsed));
Add Comment
Please, Sign In to add comment