code/WPILib/IterativeRobot.cpp
/**
 * Set the period for the periodic functions.
 * 
 * @param period The period of the periodic function calls.  0.0 means sync to driver station control data.
 */
Set the period for the periodic functions.

@param period The period of the periodic function calls.  0.0 means sync to driver station control data.
Set the period for the periodic functions . @param period The period of the periodic function calls . 0 . 0 means sync to driver station control data .
void IterativeRobot::SetPeriod(double period)
{
	if (period != 0.0)
	{
		m_mainLoopTimer.Reset();
		m_mainLoopTimer.Start();
	}
	else
	{
		m_mainLoopTimer.Stop();
	}
	m_period = period;
}
void IterativeRobot :: SetPeriod ( double period ) { if ( period != 0.0 ) { m_mainLoopTimer . Reset ( ) ; m_mainLoopTimer . Start ( ) ; } else { m_mainLoopTimer . Stop ( ) ; } m_period = period ; }
Set the period for the periodic functions.
Set the period for the periodic functions .
// Not syncing with the DS, so start the timer for the main loop // Syncing with the DS, don't need the timer