A
archana
Hi all,
I am using timer to do some functionality on user specified time.
I am using system.timers.timer class and its timer to do this
functionality. What i am doing is i set autoreset to false as i want to
start processing only on user specified time.
I am setting interval as difference between user sepcified time and
current time. And when that elapsed event occured i am again setting
interval to new value with autoreset to false as i want to fire event
only once.
Means everytime i am reinitializing timer.
There is another solution and that is set autoreset to true and set
interval to say 1 min and in every min check current time with user
specified time. But this will cause timer to get fire every time.
so which one is better solution?
Can someone help me in deciding which i need to implement,
Any help will be truely appreciated.
Thanks in advance.
I am using timer to do some functionality on user specified time.
I am using system.timers.timer class and its timer to do this
functionality. What i am doing is i set autoreset to false as i want to
start processing only on user specified time.
I am setting interval as difference between user sepcified time and
current time. And when that elapsed event occured i am again setting
interval to new value with autoreset to false as i want to fire event
only once.
Means everytime i am reinitializing timer.
There is another solution and that is set autoreset to true and set
interval to say 1 min and in every min check current time with user
specified time. But this will cause timer to get fire every time.
so which one is better solution?
Can someone help me in deciding which i need to implement,
Any help will be truely appreciated.
Thanks in advance.