IntPtr hWnd
if((i%10 == 0)&&(i!=0)){ /*write out what you need*/ }
i++
CElapsed et; double start = et.TimeSince(0.0); double absolute = 0.0; double delta = 0.0; double old = 0.0; wprintf(_T("\nPrior loop: start TimeSince (0.0) = %lf\n"), start); for (int j = 0; j < 100; j++) { absolute = et.TimeSince(start); delta = absolute - old; wprintf(_T("\nIn Elapsed Delta ABSOLUTE [%d] = %lf"), j, absolute); wprintf(_T("\nIn Elapsed Delta RELATIVE [%d] = %lf"), j, delta); wprintf(_T("\n----------")); old = absolute; }