Class ThreadBarrier.BarrierTimer

    • Constructor Summary

      Constructors 
      Constructor Description
      BarrierTimer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTimeInNanos()
      Returns the elapsed time between two successive barrier executions.
      double getTimeInSeconds()
      Returns the elapsed time between two successive barrier executions.
      void reset()
      resets (clears) this timer before next execution.
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BarrierTimer

        public BarrierTimer()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • reset

        public void reset()
        resets (clears) this timer before next execution.
      • getTimeInNanos

        public long getTimeInNanos()
        Returns the elapsed time between two successive barrier executions.
        Returns:
        elapsed time in nanoseconds.
      • getTimeInSeconds

        public double getTimeInSeconds()
        Returns the elapsed time between two successive barrier executions.
        Returns:
        elapsed time in seconds.