It took me maybe 3 - 4 months after surgery to feel more-or-less OK and another 3 - 4 months for the occaisonal drip to back off.
Caffeine makes your urethral sphincter sensitive, like you need to pee. 4 & 1/2 years after my surgery and it still does that.
I also have to stop and pee often while out for my morning runs with my Labrador. (She does that too, but not because she has had her prostate out.)
It will get better with the passage of time, you will need to be both careful and patient.