java.lang.Object
com.renomad.minum.testing.StopwatchUtils
This class provides some tools for running a virtual stopwatch
while code is running, to examine code speed.
example:
final var timer = new StopWatch().startTimer();
for (var i = 1; i < 5; i++) {
doStuff();
}
final var time = timer.stopTimer();
printf("time taken was " + time " + milliseconds");
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StopwatchUtils
public StopwatchUtils()
-
-
Method Details
-
startTimer
-
stopTimer
public long stopTimer()
-