How do i get the Rotation rate of the capsule component?

Is it possible to get the rotation rate ( The value for how fast the object is changing rotation, both postive and negative directions?..

I have tryed getting the yaw rotation of the capsule component, (Say its 175) and then, delaying for a small amount of time, and getting the second rotation,(Say its changed to 177) then minusing these values from eachother. which would return a value of 2, which is what i want. However i noticed that because These values reset , after 180, there is a pop in the numbers… Is there any other way to get the rotation rate of an object? Please and thank you!