Package org.graphstream.ui.swing.util
Class FPSLogger
java.lang.Object
org.graphstream.ui.swing.util.FPSLogger
Very simple logger for Frame-Per-Second measurements.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PrintStreamOutput channel.protected longStart time for a frame.protected longEnd Time for a frame. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
T1
protected long T1Start time for a frame. -
T2
protected long T2End Time for a frame. -
out
Output channel.
-
-
Constructor Details
-
FPSLogger
- Parameters:
fileName- The name of the file where measurements will be written, frame by frame.
-
-
Method Details
-
beginFrame
public void beginFrame()Start a new frame measurement. -
endFrame
public void endFrame() -
close
public void close()Ensure the log file is flushed and closed. Be careful, calling `endFrame()` after `close()` will reopen the log file and erase prior measurements.
-