System Timer?
-
I am writing a prog that will process data every 15 mins to 1 hour. I have looked at System.Timer and Window Timer but they seem to be conern about millisecond timing and I presume that the amount of resources (processer and RAM) that it requires might be wasted since I only require accuracy of a minute. I was wondering if you guys actually use Timers with elapse time of 15 mins - an hour or is there a better solution for this.
-
I am writing a prog that will process data every 15 mins to 1 hour. I have looked at System.Timer and Window Timer but they seem to be conern about millisecond timing and I presume that the amount of resources (processer and RAM) that it requires might be wasted since I only require accuracy of a minute. I was wondering if you guys actually use Timers with elapse time of 15 mins - an hour or is there a better solution for this.
A timer uses very little resources because it works with your system clock which is essential to making your computer work. Your CPU and system clock work together. Any computer engineering book you could pick up will help you understand this better. Note that there are actually 3 timers in the .NET BCL
System.Threading.Timers
System.Timers.Timer
- System.Windows.Forms.Timer
Each have a resolution of 1 millisecond but work different ways, like requiring a callback or exposing an event (to which you add a handler, or callback). This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]