C++ "stat fps"

GetOwningPlayer()->ConsoleCommand(“stat fps”);

or if you don’t have access to a player:

GetWorld()->Exec() but this has limited command support