A method for time-resolved imaging that provides a flexible trade-off between imaging time and temporal resolution is presented. It is based on a view order selection technique that automatically segments the acquired raw data into appropriate temporal frames. When used with cardiac monitoring and phase-contrast imaging, data similar to that obtained with a conventional gated phase-contrast sequence are acquired rapidly. For many applications, the temporal resolution can be reduced enough to permit imaging within a breath-hold interval, while still allowing accurate time-averaged flow quantitation. This is a general technique that can be implemented within a variety of pulse sequences and can resolve other motion cycles, including the respiratory cycle.