You will know the ugali is cooked when it easily pulls away from the bottom of the pot and starts to give a strong aroma of corn. A small ball pinched between the thumbs will not be too sticky or grainy. Also, an unproven theory is that a ball of ugali that has cooked through, will not stick when thrown against a wall and will instead fall down.