For the elections I mentioned, it was at least a few days out. Within 24 hours, every one of them was accurate, not just in terms of the binary win/lose aspect, but also if it would be a close race or not, as the spread often includes wins based on electoral college vote totals. Functionally, all it can really do for you is not make you feel like you need to stay up late biting your nails, and give you an idea of what's really going to happen. Maybe enough time to call people on election day and make sure they voted.
This isn't just me speculating, it's well-studied. https://theconversation.com/joe-biden-how-betting-markets-foresaw-the-result-of-the-2020-us-election-150095