added a line which prints the duration of each file-write sequence