Theoretically you could last longer if you stood in the median between the hot and cold side. Of course you still can't breathe so it would depend entirely on how long you can hold your breath.
Mercury is hot as hell on the side facing the sun, but the side facing away is hundreds of degrees in the negatives. You could probably theoretically survive in those negatives long enough to die of oxygen deprivation before freezing to death.
I'm not particularly experienced, but I think I could last longer than that