Measuring the decorrelation times of Fourier modes in simulations