You can try to multitask and grill the onions while you prepare the rest of the burger components, but either way, just keep an eye on them and make sure they don't brown too fast, or even worse, burn! Lower the heat as needed, stir frequently, and deglaze with some water if they stick to the pan. They should be perfect in about 45 minutes to 1 hour. Once they are done, remove from the heat and reserve.