Here it is:

void cBase::Update(void)
{
while(1)
{
if (isIngame())
{
if( Menu.mOpt[2].nopt > 0 ){
pRunConsoleCommand("ShowFPS 1");
}
}
else
{
Sleep(2000);
}

}
}