I would like to be able to read what the cycle time of the task my code is running in from program code at runtime.
E.G. if my code is running in a 20ms cyclic task, I can run some code that detects this and reports back the value 20.
If I subsequently change the task rate to 10ms, the value that gets reported back would be 10.
The purpose is that I want to do some manual timing operations (not using timers), so every cycle I will remove the cycle time from my timer value. When value <= 0 time expired.
I have looked at task GSV values, but nothing really fits the bill.
E.G. if my code is running in a 20ms cyclic task, I can run some code that detects this and reports back the value 20.
If I subsequently change the task rate to 10ms, the value that gets reported back would be 10.
The purpose is that I want to do some manual timing operations (not using timers), so every cycle I will remove the cycle time from my timer value. When value <= 0 time expired.
I have looked at task GSV values, but nothing really fits the bill.