Car shutters and stalls for no apparent reason. on 1997 Cadillac DeVille

Seems to happen after driving for at least half an hour. Problem is not related to being stopped at a light. Happens for no apparent reason. After waiting for 15 minutes, problem usually goes away. I have been told it could be a "crankshaft positioning sensor" problem.