Hi ,
I need to calculate difference between two time intervals. I have to set a timer for this time interval using SetTimer(......)
iam using SYSTEMTIME,FILETIME and ULARGE_INTEGER for this.
Iam getting the current time(start time) using GetLocalTime(...) and setting the end time in SYSTEMTIME structure for 31st Dec,2005 as follows:
l_SystemTime.wDay=31;
l_SystemTime.wDayOfWeek=0;
l_SystemTime.wHour=0;
l_SystemTime.wMilliseconds=0;
l_SystemTime.wMinute=0;
l_SystemTime.wMonth=12;
l_SystemTime.wSecond=0;
l_SystemTime.wYear=2005;
i have converted both start and end times to FILETIME and then to ULARGE_INTEGER for subtracting. iam subtracting high and low parts of both the time intervals separately(or can i subtract the quadparts?) .i wanted to know if the difference here can be obtained in milli seconds, so that i can directly use this value for setting a timer. If yes, how do I extract the value as SetTimer takes the interval as UINT?
Can anyone help me on this
Regards,
Anu