You are getting addicted and that needs treatment
You should control your urge to watch porn if that is affecting you work
If you cant do so by yourself, a psychiatrist would surely be able to help you out with that
Its a good sign that you are aware of your addictive behavior and are motivated to quit
Next Steps
the choice of a psychiatrist is yours, but if you need my help, you can contact me directly