Combine sugars, thyme, salt and pepper. Sprinkle over onions and stir occasionally, uncovered, until caramelized.