How to use it

This demo opmode is very handy in getting you started with the LoopTimeController. Initialize the controller in the init section of your code.

ElapsedTime elapsedTime = new ElapsedTime();
LoopTimeController loopTimeController = new LoopTimeController(elapsedTime,null,null);

Then, use the functions update and telemetry in order to see the current lps and loops in your telemetry. This is done in the main loop of your code.

loopTimeController.update();
            
loopTimeController.telemetry(telemetry);
telemetry.update();

Thats it! Just monitor it from your DS telemetry.

Last updated