usec = now(clock_boottime_or_monotonic()) + (usec_t) timeout_ms * USEC_PER_MSEC + USEC_PER_MSEC -1;if(g->timer) {if(sd_event_source_set_time(g->timer, usec) <0)return-1;if(sd_event_source_set_enabled(g->timer, SD_EVENT_ONESHOT) <0)return-1; }else{if(sd_event_add_...