It's take a bit, enough for it to be wasteful to do the same rotations over and over every time the angle changes.
You can be more savvy about it.
One approach would be to rotate all the angles you need at startup and either store them in memory for later use. Though even that is slightly wasteful as you could do the rotations once and write the resulting images to disk so you can create an imagetable of them for more normal loading.
Ok, what would be an efficient way to that, i saw your car game, love it keep it up, and i would do that but my friend and i are trying to make an space invaders, balloons td6 game where you shoot down enemy airplanes with an aa gun u crank. Should we render an animation of the plane doing a strafe attack as a sprite sheet?