It depends how it was administered. Orally, it starts to take effect within the hour but the effects are not usually most noticeable until the horse has been on a steady dose for a few days.
It's still detectable for a while in bloods and urine though, so watch out for that if you compete.