Scachi wrote:++t will be a value increasing at some variating speed (1ms and faster).
If you want it to track time passed (milli-seconds) you have to use
t+=elapsed_time();
++t will increase every time the main{ } block is called.
Which is 1000 times per seconds.
And there is 1000ms in 1 second.
I'm not saying your wrong though, it was my silly mistake, ideally yes using elapsed_time() is the correct way to go for the most accurate results, I forgot to change that part of the script when I submitted it
Usually when I am testing a script, and I want to implement a timer, I tend to go with ++t, because I'm just testing the timer aspect in general, and not the actual timer value.
(I'm lazy) I know that ++t will yield a faster outcome than elapsed_time().
Which is expected because the input controller will generate additional main { } block calls. With every input that gets sent to the titan.
Although, that being said, theoretically as long as the connected input controller is not actually active. ++t and t+=elapsed_time() should produce the exact same results.