If your 99 or newer XJ has a rough idle for 20-30 seconds or so on a HOT restart, then definitely refer to the technical bulletin that Jeepman 121 so kindly provided. This is a very common fail; my 99 had it. And very easily fixed.
If however you Jeep sputters and hesitates pretty much all the time, then the problem is something else. Checking your fuel pressure is a reasonable thing to do if you have tried some other common things like cleaning/replacing the IAC, cleaning throttle body, etc.
Long cranking periods in and by themselves can often be traced to a drainback of fuel into the tank, therefore it takes a while to get the proper fuel pressure at the rail which is accomplished by cranking the engine.
One thing you can do if your vehicle takes a lot of cranking to start is this: Turn the key to the on position (do not crank engine) which will run your fuel pump for a couple of seconds. Turn key off. Repeat two more times for a total of three cycles of the fuel pump. NOW try to start it. If it starts right up, then the problem is possibly the regulator/check valve in the fuel pump. I know it sounds weird but low battery voltage, in some instances, has been found to be responsible for a long crank before starting too.
PurpleCherokee...if yours cranks a long time, then starts cleanly, the problem is NOT your crankshaft position sensor. If your crank sensor is dead, you're not going anywhere. You will have no spark of fuel. Concentrate on the fuel pump circuit. :wave: