Code:
void rotateperhour(ENTITY* ent)
{
float seconds;
while(1)
{
seconds += time_frame;
ent.pan = seconds / 10;
wait(1);
}
}


Like this, probably not a nice way-