Update %rms and counting millisecond