A cap has been placed on top of the leaky Gulf oil well, but BP says it may take 24 hours to know if it worked.