How long to take a pregnancy test?

Jaliyah
If you had sex sunday morning about 3:00 am. And u did not use a condom. How long should it take to do a pregnancy test?