MS2TIME
params->interval = MS2TIME(100);
params->target = MS2TIME(5);
local->cparams.interval = MS2TIME(100);
local->cparams.target = MS2TIME(20);