Mushrooms cook relatively quickly compared to vegetables. 4-5 minutes over medium heat usually does it. Be sure to cook them until they're tender and lightly browned.