a file to keep track of the events and avrage time