Hi Kevin
It seems to me that this solution could be costly if I needed more
accuracy on my timer.
I think that the cost in terms of resources grows exponentially while
increasing accuracy.
Also, we should not forget that a timer is a system resources and
firing it's event gets also system resources, thus impacting the
overall system performance.
I think I will try using a timer and set its interval to high values,
as suggested by the article I mentioned earlier:
http://support.microsoft.com/default.aspx?scid=kb;en-us;180736
This way, I get rid of redundant events triggered by the timer on a
periodical basis. I don't want to make on purpose things complicated,
but I think that this is the more efficient (not necessarily the best)
solution.
It still remains a little problem for me: is the timer reliable enough
so I can trust the fact that I don't miss any trigger at all? I mean,
if I put a timer to check the time once a second (Interval = 1000),
it's no problem to miss a trigger (I couldn't figure out right now such
a situation) because it's very likely that I don't miss the second
trigger, which fires one second later.
On the other hand, the solution embraced by me is more efficient, but
if somehow I "miss" a trigger, my event will only have another chance,
say, next day.
Kevin Spencer a scris: