Why, when I use SecondsBetween or TTimeSpan.Subtract().TotalSeconds between 2 TDateTime values on Android do I get a massive number of over 3000 when it should be 2-3 seconds? On Windows it's correct.

Why, when I use SecondsBetween or TTimeSpan.Subtract().TotalSeconds between 2 TDateTime values on Android do I get a massive number of over 3000 when it should be 2-3 seconds? On Windows it's correct.

Is this a know bug?

Comments

  1. First step could be to add a sanity check by just subtracting Now and fLaunchtime and see if this is what you expect. Perhaps this already eliminates TTimeSpan calculations as the error source.

    ReplyDelete
  2. Interesting idea, thanks Uwe Raabe I'll simplify the test. It's always difficult debugging on Android as it doesn't evaluate dates properly through the debugger but I'll give this a go

    ReplyDelete
  3. The interactive debugger is probably just going to be unproductive. I'd use trace logging. And Uwe is saying just the same as I said above, FWIW.

    ReplyDelete

Post a Comment