Class FramesPerSecondPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Runnable, Accessible, RootPaneContainer, WindowConstants

public class FramesPerSecondPanel extends JFrame implements Runnable
See Also:
  • Constructor Details

    • FramesPerSecondPanel

      public FramesPerSecondPanel(boolean displayPanel)
  • Method Details

    • addEntry

      public void addEntry(String key)
    • removeEntry

      public void removeEntry(String key)
      Removes entry from FPS panel.
      Parameters:
      key - - Same used for registerThreadCompletion
    • run

      public void run()
      Main run method to update fps entries.
      Specified by:
      run in interface Runnable
    • registerThreadCompletion

      public long registerThreadCompletion(String key, boolean dataProcessed)
      Returns:
      desired time between registerThreadCompletion calls minus actual time between calls (in miliseconds). ie. wait time still needed in order to meet desired time between registerThreadCompletion calls