The duration of diabetes is typically measured in years from the time of diagnosis. This data is collected through patient medical records, self-reports, or through epidemiological surveys. Accurate documentation is essential for understanding trends and outcomes in diabetic populations.