The median duration of the nerve block was 18 hours ( 95 % confidence interval , 18-20 ) in the dexmedetomidine group and 14 hours ( 95 % confidence interval , 14-16 ) in the ropivacaine group ( P = 0.0001 ) .