no, but there is a law for citizens (not taxpayers) that says you have the right to a speedy trial (constitution) however, if you waived that right, there are usually state statutes that maintain how long a case can be drawn out
but if your attorney or yourself, is the one who is continuing, or stalling the case, there is nothing that says they have to dismiss it in any case, regardless of statute placed on the Prosecutor of your case.