The highly varying plasma environment around comet 67P/Churyumov-Gerasimenko inspired an upgrade of the ion mass spectrometer (Rosetta Plasma Consortium Ion Composition Analyzer) with new operation modes, to enable high time resolution measurements of cometary ions. Two modes were implemented, one having a 4 s time resolution in the energy range 0.3-82 eV/q and the other featuring a 1 s time resolution in the energy range 13-50 eV/q. Comparing measurements made with the two modes, it was concluded that 4 s time resolution is enough to capture most of the fast changes of the cometary ion environment. The 1462 h of observations done with the 4 s mode were divided into hour-long sequences. It is possible to sort 84 per cent of these sequences into one of five categories, depending on their appearance in an energy-time spectrogram. The ion environment is generally highly dynamic, and variations in ion fluxes and energies are seen on time-scales of 10 s to several minutes.