Time to Test?

After having sex last night, how soon can I test to know if I'm pregnant?