Add a timer before writing number of lines processed