A long crank after the car sits overnight is not the same pattern as a hot restart after a short stop. Note ambient temperature, fuel level, warning lights, and whether the engine catches and then stalls.
If a code is stored, save it with the freeze-frame data before clearing anything. Avoid repeated long cranking; follow the owner's manual if the car does not start.
Quick educational note
For information, not a diagnosis or repair instruction. Vehicle-specific checks are still required. Consult the manufacturer's guidance and a qualified technician.
How to use this information
This article explains general principles and does not establish what is wrong with your vehicle. Read the content limitations.