Class FramesPerSecondTracker

java.lang.Object
edu.tufts.hrilab.vision.FramesPerSecondTracker

public class FramesPerSecondTracker extends Object
  • Method Details

    • registerThreadCompletion

      public long registerThreadCompletion(boolean dataProcessed)
      Returns:
      time in milliseconds since last registerStageCompletion call
    • getLooptime

      public long getLooptime()
      gets looptime in miliseconds
      Returns:
      miliseconds
    • calculateFPS

      public int calculateFPS()
      uses data collected by registerThreadCompletion to calcuate avg fps over a window of time also clears the data collected and starts a new window of time
      Returns:
      FPS
    • toString

      public String toString()
      Overrides:
      toString in class Object