As Mark just mentioned, this is usually the early signs of a Crankshaft Position Sensor failing... Sometimes starts hard, and idles rough. Shut it off, restart and it is fine....kind of thing.... but others will tell you a lot more than me....what do I know....