Add the onions and cook for about 2 minutes, then add the mushrooms. Cook for 2 minutes, then lower heat to medium high and add garlic, cooking for a minute.