Praise be to Allah.
The sharee’ah of Islam is an easy-going law which relieves people’s hardship and makes things easy for them. Allaah says (interpretation of the meaning):
“and has not laid upon you in religion any hardship”
What you have asked about is not something that should cause any anxiety or frustration or despair, because whatever happens to you is a test from Allaah and you will be rewarded for bearing it with patience. You should note that the religion of Allaah is easy in all things. If this is what usually happens to you and you know that the urine will stop after five or ten minutes, then what this means is that you should get up ten minutes before the time (for prayer) so that you can urinate and wait for it to stop, then you can do wudoo’. If we assume that you get up late and you need to urinate, there is no sin on you if you urinate and wait for it to stop, even if you miss the prayer in congregation, because in this case you are excused, as the Prophet (peace and blessings of Allaah be upon him) said: “There is no prayer when food is ready or when a person needs to relieve himself (of either urine or stools).” (Narrated by Muslim, no. 560). Based on this, we say: Allow enough time before the time of prayer to let the urine stop, but if you cannot manage that then you should wait, even if you miss the prayer in congregation, if you are desperate and cannot focus on anything else. And Allaah is the Source of strength,
Shaykh Ibn ‘Uthaymeen, Fataawa Manaar al-Islam, 1/106.