add timer to count seconds from startflag