Using a rod that is free to rotate, put a snug patch on a jag or tip, slide it in the barrel.
Mark the rod with a Sharpie at the muzzle or chamber, depending on how youre doing it, and mark a line along the rod as an index.
Then draw or push the rod through the barrel, while watching the index mark make one revolution. Then mark the rod again. Remove it and measure the distance between the two marks.