I have faced with a problem today. It looks like CTimeSpan works wrong. I tried the code below with VS2008 + ADS SDK for Debug and Release and it works wrong in Debug, but is correct in Release. I also tried that with Standard WinCE 5 SDK from MS web site and it works correct.
If you take a glance at the code below you will see that I expect ts1 = 1, but I got ts1 = 513770420 in VS2008 Debug.