Covid testing of any type is going to be work best at least 24 hours after you've been exposed to covid. The virus needs to have enough time to replicate in your body to produce the factors necessary for tests to detect it.