using PWM in arduino

As you have not said, I assume you are using an Uno. millis() uses Timer0. You can change the settings of Timer1 and Timer2 without affecting it.

...R