Cook the bratwurst for 20-30 minutes over medium high heat, turning the sausage occasionally with a tongs and stirring the onions. Cook bratwurst until no longer pink inside. Set aside.