Pool with tampons is safe but...

I was swimming for about 9 hours and every 4 hours i got out to eat, and change my tampon. Do i have a risk if getting TSS? Im scared