Tax expectations for real estate inheritance

Is there a time limit to avoid paying capital gains?