Follow-up on Timed Events old forum post

Hey folks,

I was looking into how to set up a callback that would get called at regular intervals (with some fairly good timing precision since it’s for AV sync stuff) and stumbled upon this post from the old forum:
https://forum.libcinder.org/topic/timed-events

It seems to imply that there was some work planned to add that functionality to Cinder directly. I did some research and couldn’t find anything in the Cinder code. I might go ahead and implement something myself but just wanted to double check I was not missing something before going down that route.

Thank you!

You may want to use boost::asio::steady_timer for this, see this link. Cinder already creates an io_service that you can use for that.

1 Like