Execute action every x seconds delphi
===

I'm trying to execute a function(or procedure) every x seconds.

I've been looking everywhere but never seemed to find something that suits my needs.

My application basically gets data from the web and I want to make an auto-refresh checkbox.
So let's say the user checks the box, I want the app to call that function every 5 seconds.

Thanks!