Put a frying pan on a medium heat and add some olive oil. Add chopped onion and potato to frying pan and stir until softened. Then add spices and stir it for 1-2 minutes and then add thyme leaves. Stir for few seconds and remove the pan from the heat.