Spin and object once

Hey,
How do I spin it, and check its angles , so it only spins 360, then stops?

		if( ( Time.time > nextRotate ) || rotating)
		{

			float speed = Time.deltaTime * 100;
			rotating = true;

			sprite.transform.Rotate(Vector3.up * speed);
		

		}

if (speed < 360)
sprite.transform.Rotate(Vector3.up * speed);