when to get tested

After unprotected sex with someone how early can you get tested for stds and stuff?