Class StopWatch

java.lang.Object
com.ctre.phoenix.time.StopWatch

public class StopWatch extends Object
Stopwatch to track time in milliseconds
  • Constructor Details

  • Method Details

    • start

      public void start()
      Start the stopwatch
    • getDuration

      public double getDuration()
      Returns:
      Current time elapsed since start in s
    • getDurationMs

      public int getDurationMs()
      Returns:
      Current time elapsed since start in ms