Interface PerfCounterCtrl


  • public interface PerfCounterCtrl
    Simple performance counter controller.

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

    • 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.