add the time counter