Added "samplingCountPerPeriod" option to CSVWrapper so it can simulate "1 measurement per second."
Fixed potential data loss with multiple measurements at the same timestamp.