Package com.jogamp.common.util
Interface PerfCounterCtrl
-
public interface PerfCounterCtrl
Simple performance counter controller.Implementation is expected to utilize nanosecond counter since module start, e.g.
Clock.currentNanos()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear performance counter.void
enable(boolean enable)
Enable or disable performance counter.long
getTotalDuration()
Return the total duration in nanoseconds, covering all sub-counter.void
print(PrintStream out)
Print performance counter.
-
-
-
Method Detail
-
enable
void enable(boolean enable)
Enable or disable performance counter.
-
clear
void clear()
Clear performance counter.
-
getTotalDuration
long getTotalDuration()
Return the total duration in nanoseconds, covering all sub-counter.
-
print
void print(PrintStream out)
Print performance counter.
-
-