Add time counter overflow handling