Is there anyway to get the time from the robot?
For example to measure how long a time a thing takes or to do things at specified interval.
Not sure this is what you mean, but it shows how to create a cycle timer.
The example @medeiros.j.1 is a great option.
Alternatively, if you in a thread place a
sync() command, this will always return after 8 ms, hence you could have a timing loop where e.g. 125 sync’s will yield 1 second.
Thanks medeiros and Jacob.
This is exactly what I was after.