Counting ticks

I need to determine the best way to make an update loop. I'm testing the
SDL tick system to determine the best way.