Class TicToc

java.lang.Object
org.jzy3d.maths.TicToc

public class TicToc extends Object
TicToc allows measuring elapsed time between a call to tic() and a call to toc(). Retrieving elapsed time is done by calling either: elapsedNanosecond(), elapsedMilisecond() or elapsedSecond().
Author:
Martin Pernollet
  • Field Details

    • T

      public static TicToc T
    • start

      protected long start
    • stop

      protected long stop
  • Constructor Details

    • TicToc

      public TicToc()
  • Method Details

    • tick

      public static void tick()
    • tock

      public static void tock()
    • tockShow

      public static void tockShow(String message)
    • tic

      public void tic()
    • toc

      public double toc()
      return time in second
    • tocShow

      public double tocShow(String message)
    • rawToc

      public long rawToc()
    • elapsedNanosecond

      public long elapsedNanosecond()
    • elapsedMicrosecond

      public double elapsedMicrosecond()
    • elapsedMilisecond

      public double elapsedMilisecond()
    • elapsedSecond

      public double elapsedSecond()
    • getStart

      public long getStart()
    • getStop

      public long getStop()