Update data_generation.c

Solved bug printing time in (packet level) debug mode.