How many degrees has changed

Hello.
This could be stupid question but.
How to find out how many degrees of rotation has changed ?

For example in top down project starting at 0,0,0 and rotate around z axis back to 0,0,0 its 360 degrees.

External Variable totaling amount of the circumference travelled. Every multiple of the circumference of the circle is once around. Use the unit circle with radius of 1 as a base. so circumference is 2(Pi)r with r=1.