Duration of exposure to tuberculosis (TB) is a major risk factor for transmission of the disease.