John was told to measure only the main Temple and to leave out the Court that surrounded it.
Solomon's Temple had two courts, the Court of the Priests and the Court of the Gentiles.
The Court of this new Temple, as well as the Holy City (Jerusalem), is to be trodden under foot of the Gentiles for 42 months (3 1/2) years, this period must refer to the last half of the Seventieth Week, after the Antichrist breaks his Covenant with the Jews and desecrates the Temple, for Jerusalem must be trodden down of the Gentiles until the Times of the Gentiles is fulfilled and that will not end until the Battle of Armageddon.