In order to gain insight into the effect of elevated temperature on the mechanical performance of zirconium carbide (ZrC) and hafnium carbide (HfC), their temperature-dependent elastic constants have been systematically studied. This has been done using two different approximations, qusi-harmonic (QHA) and qusi-static (QSA) ones. The former is more accurate, but also more computational expensive. Isoentropic C11 gradually decreases, and C12 slightly increases for ZrC and HfC under temperature, while C44 of both is insensitive. For both ZrC and HfC, the decline of temperature-dependent C11 calculated from QHA is more pronounced than from QSA. Temperature effects on modulus of elasticity, Poisson's ratio, elastic anisotropy, hardness, and fracture toughness are further explored, and discussed. The results indicate that the decrease of bulk modulus B, shear modulus G, and Youngs modulus E approximated from QHA is more significant than from QSA at high temperatures. From room temperature to 2500 K, the theoretical decreasing slope (from QHA) of B,