(1)It shall be the duty of every commanding officer to take care that a person under his command when charged with an offence is not detained in custody for more than forty- eight hours after the committal of such person into custody is reported to him, without the charge being investigated, unless investigation within that period seems to him to be impracticable having regard to the public service.