Re: Req for task.e

new topic     » goto parent     » topic index » view thread      » older message » newer message

Have you tried something like task_schedule(id,{2.0,2.01})? Unless I missunderstood, this is exactly what you need. See task_schedule():

said...

schedule is a sequence:

In this case, it must be a pair of positive atoms, the first one not being less than the second one. This defines task_id as a real time task. The pair states the minimum and maximum times, in seconds, to wait before running the task. The pair also sets the time interval for subsequent runs of the task, until the next call to task_schedule() or task_suspend().

[spoiler]Btw, there must be "the first one not being greater then the second one"[/spoiler]

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu