add time counter