How to display a timer onto a V5 Brain

How do you set a timer in VCS?

What do you want to time? Are you debugging something, timing a run, etc? There is already a timer on the controller. Be more specific.

1 Like

Will I am just using the V5 brain for a test bed that my teacher is having us make.

Try this in the main task (assuming the screen is cleared):

Brain.Screen.printAt( 10, 40, “counts %.4f”, Brain.timer(timeUnits::msec));

1 Like