Package 

Interface ExecutionTimer


  • 
    public interface ExecutionTimer
    
                        

    Interface for execution timers to measure the duration of actions. This should only be used by internal benchmarking.

    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> T measure(Function0<T> action) Wraps the action to measure the time it took to execute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • measure

         abstract <T extends Any> T measure(Function0<T> action)

        Wraps the action to measure the time it took to execute.

        Parameters:
        action - The action to measure.