Package net.sourceforge.pmd.benchmark
Interface TimedOperation
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface TimedOperation extends java.lang.AutoCloseableDescribes a timed operation. It'sAutoCloseable, for ease of use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Stops tracking if not already stopped.voidclose(int extraDataCounter)Stops tracking if not already stopped.
-
-
-
Method Detail
-
close
void close()
Stops tracking if not already stopped.- Specified by:
closein interfacejava.lang.AutoCloseable
-
close
void close(int extraDataCounter)
Stops tracking if not already stopped.- Parameters:
extraDataCounter- An optional additional data counter to track along the measurements. Users are free to track any extra value they want (ie: number of analyzed nodes, iterations in a loop, etc.)
-
-