Saving Battery Power

Is there a way i can switch off the PWM module after 10 seconds of using it?

for (int i = 0; i < N_PWM_PINS; i++)
{
  analogWrite (pwmPin [i], 0);
}