In the clinic setting both fasting levels of glucose and the area under the curve ( AUC ) of glucose , by determination of HbA1c levels , are used for risk assessments , in type 2 diabetes ( NIDDM ) .