|
Time/timer function
Hello,
I am trying to include a time/timer function so that in a while loop I can keep track of how long it has been and still being able to run other code.
Also I would like to use it so that when I press a joystick button, the button is disable for say 1 second (so that it only registers 1 press and not registering from consistent pressing).
Could demonstrate how this function works?
Thanks,
Davis
__________________
FRC Team 539
Student Member: 2010 Breakaway - 2014 Aerial Assist
Mentor: 2015 Recycle Rush - present
|