Periodically doing "stuff", how do I...
I am working on a senior design program at NCSU and need some help. I am writing a program that will periodically retrieve data from several different counters attached to motion sensors and then update a database with these counts on an hourly basis.
What I need to know as of right now is some info on how to periodically do "stuff". This "stuff" is serial I/O and database updates. The details on my "stuff" are not what I am looking for within this post.
I basically need to know how to make my program do "stuff", wait a specified amount of time, do more "stuff", wait a specified amount of time, etc...
Threads? Sleep? I don't think that I need to accomplish this work via threads because I don't need concurrent "stuff" being done. I will retrieve my data from one counter at time.
Any help you have to offer will be greatly appreciated.

