Quote Originally Posted by ianatwork
What about if I have an internal counter that starts at 0 and is incremented every minute. I could use the above method but use the counter rather than the pc time.
That's probably the best solution. Also, you could use another thread that would work as the counter and maybe a yet another one for deleting the data if it's too old. That would make your application multithreaded. But be careful when sharing data between many threads - I suggest you use critical sections - they are the best solution IMHO.