On average how long does it take a ray of light to travel from our sun to earth?

On average how long does it take a ray of light to travel from our sun to earth?