SYSTEMTIME
-
Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks
VVVimal wrote:
Is this a good approach t1==t2
Depends on your needs (i.e. be specific!). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hi Can anyone tell how to compare systemtime. SYSTEMTIME t1; SYSTEMTIME t2; GetSystemTime(&t1); GetSystemTime(&t2); Is this a good approach t1==t2 Thanks
VVVimal wrote:
Is this a good approach
No, that will not even compile. I would recommend converting to FILETIME structure with the SystemTimeToFileTime Function[^] and then to ULARGE_INTEGER Union[^] and compare the QuadPart. Best Wishes, -David Delaune