Many (most?) marathons have pace runners who run the course, hewing to each 30 minute and 15 minute finish. So there’ll be a 3:30:00 pacer, a 3:45:00 pacer and so on. Your local pacer might even have their pace on their shirt and may even have a flag so they’re super hard to miss as you’re running.
One friend of mine runs with a speaker, to play music and keep everyone’s spirits up.
By the end of the race they’d acquired a small army of marathoners! You could see their smiles for miles, and when they all finished together they had a huge party in the recovery area with the speaker :)
I’m surprised the marathon time discontinuity isn’t bigger :)