Class ProfilerImpl


  • public class ProfilerImpl
    extends Object
    Simple class for profiling code. beginItem/endItem pairs start and stop the timing for an item.
    Author:
    bnevins
    • Constructor Detail

      • ProfilerImpl

        public ProfilerImpl()
        Create an empty object
    • Method Detail

      • reset

        public void reset()
        Reset all the timing information
      • beginItem

        public void beginItem()
        Start timing an item.
      • beginItem

        public void beginItem​(String desc)
        Start timing an item.
        Parameters:
        desc - - Descriptive text for the item
      • endItem

        public void endItem()
        Stop timing an item and store the information.
      • toString

        public String toString()
        Return a formatted String with the timing information
        Overrides:
        toString in class Object
      • main

        public static void main​(String[] notUsed)
        Simple unit test