Saute the onions for about 3 minutes, till the onions become translucent or slightly golden brown.
Bake for about 15-20 minutes. Test if the egg muffin is done, with a fork or toothpick. If the fork or toothpick comes out dry then it's ready. If not, allow the muffins to bake for a few more minutes.