Hi Evgeny,
Yes, the units are a bit confusing, and are different simply because for instance 0.625 mSec is the best precision we can give for some parameters, whereas for instance TGAP_LIM_ADV_TIMEOUT which determines how long you advertise, is specified in 1 second units.
To advertise for 10 seconds only, put this code in the Init function in your applications task:
GAP_SetParamValue(TGAP_LIM_ADV_TIMEOUT, 10);
Best regards,
Aslak