msec2ts
ret = msec2ts(ms);
d->time_ts = msec2ts(d->time);
d->twotime_ts = msec2ts(d->time * 2);
d->after_ts = msec2ts(d->after);