Package com.jogamp.common.util
Interface PerfCounterCtrl
-
public interface PerfCounterCtrlSimple 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 voidclear()Clear performance counter.voidenable(boolean enable)Enable or disable performance counter.longgetTotalDuration()Return the total duration in nanoseconds, covering all sub-counter.voidprint(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.
-
-