How close close before a man ejaculates does pre-cum come out of the penis? is it JUST before? or like 30sec?

when does precum come out?