No matter if you had a dual nationality or not, you had to stay 10 years in the country in order to get Spanish citizenship.
But under the new changes in the regulation, if you have another nationality, things may be better for you.
If the other nationality that you possess is one that just requires 2 years in Spain for obtaining citizenship, you can come under this ordering and avoid spending 10 years in Spain.