Interface TimedOperation

All Superinterfaces:
AutoCloseable

public interface TimedOperation extends AutoCloseable
Describes a timed operation. It's AutoCloseable, for ease of use.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stops tracking if not already stopped.
    void
    close(int extraDataCounter)
    Stops tracking if not already stopped.
  • Method Details

    • close

      void close()
      Stops tracking if not already stopped.
      Specified by:
      close in interface 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.)