renamed macro dbl_ts2ms -> fts2ms and moved it to internal.h