And which engine are you using?
It all makes a difference. My INJECTION pump needed work when it started leaking around the throttle shaft. Not supposed to have pressure there so I sent it in. When it came back, the timing was definitely off and the engine produced white smoke unless it was fully loaded. The way you adjust the timing on a Westerbeke W50 is to loosen the mounting bolts and twist the injection pump slightly. Tighten the bolts without letting the pump rotate back and then start the engine to see if you've gotten rid of the smoke. If you leave your mechanic down below, you can make 5 or 6 adjustments in an hour.
But once you have it adjusted, you don't have to mess with the timing. If you're injection pump is driven by the crankshaft like mine then it's "probably" not out of time.
Something cheaper and easier to do on my engine is to pull the injectors and have them tested at a diesel shop. If your problem just started, you "may" have a fouled injector.
What we (the designated engine ex-spurts) really need are your symptoms. How is your engine running? Did this just start happening? Is your problem a loss of performance at higher rpms? What color smoke do you have when you're experiencing your problem? All these answers and any other information about when and how your engine is not working right is necessary to diagnose your problem. Right now, we just throwing darts in the dark.