TS_CMP
if (TS_CMP(rest, &interval, <)) {
if (TS_CMP(&tm_tmp, &min_delay, <)) {
if (TS_CMP(&rat->rat_tm, &now, <=)) {
if (TS_CMP(&rat->rat_tm, &tm_max, <))
if (TS_CMP(&tm_max, &tm_limit, ==)) {
} else if (TS_CMP(&tm_max, &now, <)) {
if (TS_CMP(&rat->rat_tm, &tm_max, <))
if (TS_CMP(&rat->rat_tm, &now, <=)) {