I believe the resurrection happens at the end of the 7 years period.
The 7 times are not 7 years.
The 7 times are shown as a time set by God that is not known to men. The 7 times as used in this passage does not seem to indicate a time of 7 years. It doesn't say exactly how long the 7 times are. In this case the 7 times could have been an "uneven" number in the time of men, say, 13 months, 2 days, 12 hours, or something.
Daniel 12:5-7, 7,
The angel says from the time of his speaking in Babylon, until the time of the scattering of the power of the holy people (70 ad) will be 3 1/2 times. This statement shows that the first 3 1/2 times is from Babylon until 70 ad.
This would place the beginning of the second 3 1/2 times in 70 ad., and would continue until Israel was restored to Jerusalem. Also known as the times of the gentiles Lk 21:20-24, 24.
This would make the 7 times equal to the time of the statue in Daniel 2. The time from Babylon until Israel is restored to Jerusalem (1967).
The Revelation is mainly concerned with the second 3 1/2 times, from 70 ad until Israel is restored to Jerusalem.
During this time the Roman dragon beast iron nation persecutes the people of Israel. This story is shown over and over again. Rev is not one continual time line. It shows the natural cut off branches during the ToG's mainly.
The Bible says the saints are given in to the beast's hands for three and one half years, and when he has accomplished to scatter the power of the holy people then all things are finished.
The things that are finished are everything in the last vision in the book of Daniel. Look at the book/scroll that is sealed in Dan. 12:4. Jesus is seen opening the sealed book/scroll in the 7 seals of the Revelation. What the little book/scroll says is the story of the 2W's, which is the second 3 1/2 times.
The beast is Rome/Caesar/RCC/BoR. This is shown in the iron nation of the statue of Daniel 2, the 4th beast nation of Daniel 7, the dragon with 7 heads and 10 horns in Rev 12:3.
The 3 1/2 times are from 70 ad until Jerusalem is restored. This the time that Rome has power over the people of Israel. First the Roman Empire until 476 ad., and then the image Roman Empire/Caesar of the RCC and the Bishop of Rome (BoR).
The 3 1/2 times used in the Rev are symbolic of a prophetic time set by God which is not known to men at the time the prophecy was made. So when the prophecy of the 3 1/2 times was made (96 ad), Jesus could have said, something like 70 ad until 1967, but the time was not to be revealed in the years of men, at the time that this prophecy was made.
It could only be understood after Jerusalem was restored.
And the Gospel must be preached in to all the world as a witness to the nations and then the end shall come.
Col 1:24, "......, and which was preached to every creature which is under heaven;...."
Which then comes the end when the Son shall deliver up the kingdom to the Father, so the resurrection has to happen at the end of the 7 years period, for that is when it is the end and the kingdom delivered up to the Father.
You are right that Jesus comes after the 7 times have passed and Jerusalem is restored, that is the sweetness of the scroll (Rev 11). But the bitterness is what takes place after Jerusalem is restored, that ends when Jesus comes for the kingdom Rev 11:15, Dan. 2 the stone strikes.