I'm using WebbotLib v1.5 on an Axon.
The timer isn't outputting correct values. What I mean is, clockGetus() is disagreeing with delay_ms() . . .
For example, I tell it to delay_ms() for 60 seconds, then output the final time. Code below.
My guess is that its some kind of rounding error in the lib that just keeps adding up . . .
The results:
delay_ms() clockGetus()
10000 10238
30000 30716
45000 46075
61000 62457
Its like an additional 238ms are being added every 10 seconds!
start_freq = clockGetus();
delay_ms(60000);//input time in ms
end_freq = clockGetus();
duration_freq=(end_freq-start_freq);
rprintf("\n s: %ld\n",duration_freq/1000);