Interface TimeTracker


  • public interface TimeTracker
    Collect times of operations and dump longest of them.
    • Method Detail

      • start

        TimeTracker.TrackedOperation start​(java.lang.Object operationName)
        Start operation
        Parameters:
        operationName - operation identifier
        Returns:
        operation
      • start

        TimeTracker.TrackedOperation start​(java.util.function.Supplier<java.lang.Object> operationName)
        Start operation
        Parameters:
        operationName - operation identifier
        Returns:
        operation
      • dumpLongest

        void dumpLongest​(int count)
        Dump longest operations
        Parameters:
        count - number of longest operations to dump
      • getAllTimePassedMillis

        long getAllTimePassedMillis()
        Returns:
        passed time from very first operation