Is there any by which we can increase Command duration or timeout?

Is there any by which we can increase Command duration or timeout ??

yes by adding a capability
cap.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 120);