A 2-hour C-peptide test measures the level of C-peptide in the blood two hours after the intake of glucose solution. This test helps to evaluate pancreatic function and insulin secretion, aiding in the diagnosis and management of diabetes. High levels may indicate insulin resistance, while low levels may suggest impaired insulin production.