Recording data at correct times