Hace + Length of time that it HAS BEEN since the action of time has been going on + Que + The Verb (in present tense)
or if you want to shrink this down so it can fit in your head or on the palm of your hand...
Examples
Hace 10 años que como una dieta vegetariana.
Hace 10 años que hago ejercicio cada dia.
Hace 10 años que soy sin amigos.
It has been 10 years that I have been eating a vegetarian diet.
It has been 10 years that I have been exercising every day.
It has been 10 years that I have been without friends.