The Rise Time of Type Ia Supernovae from the Supernova Legacy Survey