is this really related to windows programming? ive never heard of EXPAT.
im no expert on timing with windows programming, but the way i would do it would be to set a timer and a global counter. ie:
Code:
int nCounter;
FILE *xmlFile;
case WM_CREATE:
SetTimer(hwnd,ID_TIMER,600000,NULL);
xmlFile=fopen(...);
nCounter=0;
case WM_TIMER:
SYSTEMTIME st;
GetSystemTime(&st);
fprintf(xmlFile,"<%i>%i:%i:%i</%i>\n",nCounter,st.wHour,st.wMinute,st.wSecond,nCounter);
case WM_CLOSE:
fclose(xmlFile);
thats surely a start.