Class OperationTimer<T>

  • Type Parameters:
    T -

    public abstract class OperationTimer<T>
    extends Object
    A handy class that lets you wrap any operation in a stopwatch that will output elapsed time and an arbitrary message to the log.
    Author:
    Daniel Bernstein
    • Constructor Detail

      • OperationTimer

        public OperationTimer​(String message)
    • Method Detail

      • executeImpl

        public abstract T executeImpl()
                               throws Exception
        Implements the execution of the operation to be timed.
        Returns:
        Throws:
        Exception