Class GridTimer


  • public class GridTimer
    extends Object
    Timer to use mostly for debugging purposes.
    • Constructor Detail

      • GridTimer

        public GridTimer​(String name)
        Parameters:
        name - Timer name.
      • GridTimer

        public GridTimer​(String name,
                         long threshold)
        Parameters:
        name - Timer name.
        threshold - Max duration threshold.
    • Method Detail

      • stop

        public long stop()
        Stops this timer.
        Returns:
        Duration.
      • stopx

        public boolean stopx()
        Stops this timer.
        Returns:
        True if didn't max out.
      • maxedOut

        public boolean maxedOut()
        Returns:
        True if maxed out.
      • duration

        public long duration()
        Returns:
        Timer duration.
      • endTime

        public long endTime()
        Returns:
        End time (-1 if not stopped).
      • startTime

        public long startTime()
        Returns:
        Start time.
      • threshold

        public long threshold()
        Returns:
        Max duration threshold.
      • name

        public String name()
        Returns:
        Timer name.