The Timing of Flares Associated with the Two Dynamical Types of Solar Coronal Mass Ejections