Using LabWindows/CVI 8.1.1, when computing time values stored in __int64 variables, i once again went into a problem, where part of an expression is simply ignored:
duration % (1*HOUR) / (1*MINUTE) yields the same result as
duration / (1*MINUTE)...
You will find a file in attachment which reproduces the problem. Here is the output of the execution:
duration is 22:1351
duration is 1351 minutes, the modulo in the previous expression is ignored
adding parenthesis does not change anything: 22:1351
the only way to get a good result is removing the constant 1: 22:31
When will we have a reliable compiler regarding 64 bit computations ?