How to make effective rewinding for server-side hit validation?

I’ve made a few attempts in making a rewind system. I was able to get the position saving down pretty well, but I started running into issues in getting the timestamps lined up. At the end of the day I wasnt able to figure that part out, so I was wondering: Are there any tutorials for this out there? This seems like the best way to have responsive and secure hit registration, so I would love to get it to work if at all possible.