.Time( )

back to FEHRCS

Description

This function provides the match time remaining for a match that has been started from the course computers. This function will begin transmitting the time remaining with 90 seconds left in the match. Note that you must call RCS.InitializeTouchMenu(const char* team_key) to configure your Proteus to whichever region you are testing on before using this function.

Parameters

None.

Returns

This function returns the match time remaining for the region that your Proteus is configured to listen to as an integer value.

Examples

#include <FEHRCS.h>
#incldue <FEHLCD.h>
#include <FEHUtility.h>
int main(void)
{
    //initialize the RCS
    RCS.InitializeTouchMenu("A6n230lFt");

    //Get the match time remaining every 1/2 second
    while(true)
    {
        // print match time
        LCD.WriteLine( RCS.Time() );
        Sleep( 0.5 ):
    }
}