Duration of in-hospital cardiopulmonary resuscitation and its effect on survival