Package net.sourceforge.pmd.benchmark
Interface TimedOperation
-
- All Superinterfaces:
AutoCloseable
public interface TimedOperation extends AutoCloseable
Describes a timed operation. It'sAutoCloseable
, for ease of use.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Stops tracking if not already stopped.void
close(int extraDataCounter)
Stops tracking if not already stopped.
-
-
-
Method Detail
-
close
void close()
Stops tracking if not already stopped.- Specified by:
close
in interfaceAutoCloseable
-
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.)
-
-