timer vs polling vs thread.sleep

Hi, I got another question ;D
I got a lot of sparetime at the moment :slight_smile:
I’ve got some objects, after some time I have to execute a function (for example object.setAwake()). Would you use
1.timer
2. new thread + thread.sleep (I already read that I shouldn’t use that)
3. a list with all objects and poll them

I don’t need a break condition like it’s already implemented in the timer.
best regards

If you don’t need extremally high precision, I would use timer here.

Usually, if there aren’t too much objects, you’d simply have a [icode]boolean awake = false;[/icode] and then in the update method would check that one, and check the time. If the time delta is over the time you wanted to sleep, then your object wakes up.