Add/del timer?

Hi,

Is there a possibility to setup a timer to expire after a timeout that
calls a callback in an http nginx module ?

I saw some timer related functions in ngx_event_timer.c but I’m not sure
how to use it…

Is the following (untested) code right?

static ngx_event_t ngx_timer;


ngx_timer.handler = ;
ngx_timer.log = r->log;
ngx_timer.data = ;

ngx_add_timer(&ngx_timer, <timeout>);

Thanks,