Place a pan on medium heat add in little oil, and allow to be hot then add in onions, cook it until it becomes translucent, after 2 minutes of stir frying go ahead and add thyme and minced garlic. Then give it a good mix and continue to cook. When you begin to perceive the smell of the herbs then that's a good point for you to stop.