I start with a big pan full of sliced onions, splash them with sherry or wine to get them started sweating, and leave them mostly covered over low heat for at least an hour, more often two or three, stirring often enough to keep them from sticking or burning.