GlueGen v2.6.0-rc-20250712
GlueGen, Native Binding Generator for Java™ (public API).
com.jogamp.common.util.PerfCounterCtrl Interface Reference

Simple performance counter controller. More...

Collaboration diagram for com.jogamp.common.util.PerfCounterCtrl:

Public Member Functions

void enable (final boolean enable)
 Enable or disable performance counter. More...
 
void clear ()
 Clear performance counter. More...
 
long getTotalDuration ()
 Return the total duration in nanoseconds, covering all sub-counter. More...
 
void print (final PrintStream out)
 Print performance counter. More...
 

Detailed Description

Simple performance counter controller.

Implementation is expected to utilize nanosecond counter since module start, e.g. Clock#currentNanos().

Definition at line 38 of file PerfCounterCtrl.java.

Member Function Documentation

◆ clear()

void com.jogamp.common.util.PerfCounterCtrl.clear ( )

Clear performance counter.

◆ enable()

void com.jogamp.common.util.PerfCounterCtrl.enable ( final boolean  enable)

Enable or disable performance counter.

◆ getTotalDuration()

long com.jogamp.common.util.PerfCounterCtrl.getTotalDuration ( )

Return the total duration in nanoseconds, covering all sub-counter.

◆ print()

void com.jogamp.common.util.PerfCounterCtrl.print ( final PrintStream  out)

Print performance counter.


The documentation for this interface was generated from the following file: