Do you mean to change the cyclic scan time? or a periodic task scan time?
For a periodic task, one way is to make it run at the fastest rate you need, maintain one or more counters, and then call 'slower' logic ever couple of passes through it.
This only works if you have an integral relationship to your scan needs though.