Calculating a how many times a mc is rotate from 0 to 360 degree?

I want to know how to calculate how many times an mc is rotated from 0 to 360 degree. The scenario is there is a knob in which the user can click and rotate. I need to calculate the total number of degree(in total including clockwise and anticlockwise ) the knob is rotated. I strucked with it.