Is it possible to record data by regular time interval?

I want to record sensor data by certain interval (e.g., in every 5 minutes).
Anybody knows how to do this?
I tried to look out recorder/init.py but have no idea.

Thanks

Have a look at AppDeamon.