tcp_create_timer_callback(+Timeval, +Goal, -TimerId)

tcp_create_timer_callback/3 arranges things so that Goal will be called when the absolute time value Timeval is called.

Note that this goal will only be called when your program is in a wait state. Therefore all the tcp package can do is guarantee that if your program goes to sleep at QP_select() and the absolute time specified is reached or passed, then the goal is called. It does not work using asynchronous operating system timers.

The output argument TimerId can be used for destroying the timer callback just created.

To arrange for a goal to be called at some absolute time:

         ...,
         tcp_create_timer_callback(Timeval, Goal, TimerId),
         ...