How would you calculate the total number of yaw degrees that an object has rotated/spun around, from a specified yaw?

If I understand what you are asking:

// running total of degrees rotated

  • float totalDegreesRotated = 1000;

// current rotation of object

  • float currentYaw = startingYaw + (totalDegreesRotated % 360.0f);