Pregnancy test

So I know this is probably a really dumb question but I’m kinda freaking out. How long does it take for a hospital pregnancy test to show positive? I got tested at the hospital like 2 weeks after I hooked up with this guy but I missed my period this month which is not normal for me at all.