The general rule is that if you are placed in custody, your "speedy trial" rights typically require the prosecutor to decide within 72 hours which charges, if any, will be filed and you should be brought to a magistrate within 72 hours if you can not make bail. This is a right under the Sixth Amendment of the United States Constitution. The time frames can be tricky to determine given the nuances between "detained" and "arrested" and "custody."  I would speak to an attorney about your specifics.