Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Finding the Elapsed Time in a Match (http://www.chiefdelphi.com/forums/showthread.php?t=82208)

davidalln 02-08-2010 09:29 PM

Finding the Elapsed Time in a Match
 
Is there an easy way of getting the amount of time elapsed in a match? I searched extensively through Chief Delphi and the Dashboard/DriverStation classes on FirstForge with no luck in finding anything useful. Would it be better to keep track of the time myself? How would I best go about this?

virtuald 02-08-2010 11:58 PM

Re: Finding the Elapsed Time in a Match
 
Quote:

Originally Posted by davidalln (Post 916068)
Is there an easy way of getting the amount of time elapsed in a match? I searched extensively through Chief Delphi and the Dashboard/DriverStation classes on FirstForge with no luck in finding anything useful. Would it be better to keep track of the time myself? How would I best go about this?

AFAIK, there isn't anything that tracks that automatically for you. Use the Timer class provided in WPILib and just start it at the beginning of operator control.

Timer class docs: http://www.virtualroadside.com/WPILib/class_timer.html


All times are GMT -5. The time now is 10:38 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi