[refactor] move time_inteval into constants