How to make a plugin run some code at specified intervals

Hi

I wish to run some code within a Wordpress plugin every 15 minutes.

Please let me know how I can set up the plugin to work that way? Also how do I set up the time period as a configurable parameter--> so that the plugin runs at intervals of that time period(eg every 60 minutes and so on)

Yours sincerely,
Arvind.