Class TickMeter

  • public class TickMeter
    extends java.lang.Object
    a Class to measure passing time. The class computes passing time by counting the number of ticks per second. That is, the following code computes the execution time in seconds: SNIPPET: snippets/core_various.cpp TickMeter_total It is also possible to compute the average time over multiple runs: SNIPPET: snippets/core_various.cpp TickMeter_average SEE: getTickCount, getTickFrequency
    • Field Detail

      • nativeObj

        protected final long nativeObj
    • Constructor Detail

      • TickMeter

        protected TickMeter​(long addr)
      • TickMeter

        public TickMeter()
    • Method Detail

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static TickMeter __fromPtr__​(long addr)
      • start

        public void start()
      • stop

        public void stop()
      • getTimeTicks

        public long getTimeTicks()
      • getTimeMicro

        public double getTimeMicro()
      • getTimeMilli

        public double getTimeMilli()
      • getTimeSec

        public double getTimeSec()
      • getCounter

        public long getCounter()
      • getFPS

        public double getFPS()
      • getAvgTimeSec

        public double getAvgTimeSec()
      • getAvgTimeMilli

        public double getAvgTimeMilli()
      • reset

        public void reset()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        finalize in class java.lang.Object