Package com.ctre.phoenix.time
Class StopWatch
java.lang.Object
com.ctre.phoenix.time.StopWatch
public class StopWatch extends Object
Stopwatch to track time in milliseconds
-
Constructor Summary
Constructors Constructor Description StopWatch()
-
Method Summary
Modifier and Type Method Description double
getDuration()
int
getDurationMs()
void
start()
Start the stopwatch
-
Constructor Details
-
Method Details
-
start
Start the stopwatch -
getDuration
- Returns:
- Current time elapsed since start in s
-
getDurationMs
- Returns:
- Current time elapsed since start in ms
-