In the game I am working on, I want to keep track of how long the player has been playing. I want the time taking to be more accurate than whole seconds, so I need to make use of the 1/100 part of the default time keeping system somehow.
Apparently 1/100 is not 1/100 of a second. When I use a counter that adds one "second" each time it reaches 100, based on the 1/100 system, it takes longer than a second. It seems, however, that I get the correct result if I assume that the 1/100 really is 1/60 (adding one second to time each time the counter reaches 60 works).
Pseudo code below, to make it more clear:
Every 00"-01:
> Add one to Counter
Counter = 100
>Add one to Seconds (Does not work. It takes over a second for Counter to reach 100)
>Set Counter to 0
However this works:
Every 00"-01:
> Add one to Counter
Counter = 60
>Add one to Seconds
>Set Counter to 0
The question is why MMF2 lists the time as 1/100, when it really is 1/60 (if we assume that the number is counting seconds, and not something else). A wild guess is that the 1/100 is somehow bound to the frame rate, rather than actual time, and if that's the case I don't see how I can keep track of 1/100:s of a second (not really neccessary, but would be nice :P).
Thanks in advance for any answers.