public class Stopwatch extends Object implements AutoCloseable
public Stopwatch(String stopwatchName)
try (Stopwatch stopwatch = new Stopwatch("nameyouwant")) {
// your code
}
stopwatchName - Whatever name you want to display in the statisticspublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2008–2019 Emeric Vernat. All rights reserved.