When a prisoner whose trial or sentence was suspended by reason of his being found to be insane or feebleminded, has been found to be mentally competent and is brought from a hospital and committed to jail, if already convicted, he shall be sentenced, and if not, the court shall proceed to try him as if no delay had occurred on account of his insanity or feeblemindedness.
Va. Code § 19.2-180