Class TimeTrace


  • public class TimeTrace
    extends java.lang.Object
    Utility to time a method or portion of code
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeTrace​(java.lang.String name, TracerDriver driver)
      Create and start a timer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void commit()
      Record the elapsed time
      • Methods inherited from class java.lang.Object

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

      • TimeTrace

        public TimeTrace​(java.lang.String name,
                         TracerDriver driver)
        Create and start a timer
        Parameters:
        name - name of the event
        driver - driver
    • Method Detail

      • commit

        public void commit()
        Record the elapsed time