vrushali katkade

vrushali katkade

  • NA
  • 128
  • 46.2k

Performance of the parallel system.threading.timer in C#.NET

Sep 20 2011 1:55 AM
 In application in one threading.timer process some data & into the second timer i want to take the current data from first timer & stored into the MYSQL database . The first timer & second timer worked as same interval timing. but in this some issue about the performance of the timer .when I have take the data from the first timer it will be display the same timing data ,not updated data. In the second timer o/p like this 
     data       timer1 time                timer 2 time
2 19763 2011-09-20 11:02:44  2011-09-20 11:02:45
2 19767 2011-09-20 11:02:45  2011-09-20 11:02:46  
2 19775 2011-09-20 11:02:47  2011-09-20 11:02:47  
2 19779 2011-09-20 11:02:48  2011-09-20 11:02:48  //same data
2 19779 2011-09-20 11:02:48  2011-09-20 11:02:49  
2 19791 2011-09-20 11:02:51  2011-09-20 11:02:50  
2 19795 2011-09-20 11:02:52  2011-09-20 11:02:51
.
.
2 20839 2011-09-20 11:07:13  2011-09-20 11:06:05
2 20847 2011-09-20 11:07:15  2011-09-20 11:06:07//changing the first timer time
2 20859 2011-09-20 11:07:18  2011-09-20 11:06:11  


& I want like this output
     data       timer1 time                timer 2 time
2 19763 2011-09-20 11:02:44  2011-09-20 11:02:45
2 19767 2011-09-20 11:02:45  2011-09-20 11:02:46  
2 19775 2011-09-20 11:02:46  2011-09-20 11:02:47  
2 19779 2011-09-20 11:02:47  2011-09-20 11:02:48  
2 19779 2011-09-20 11:02:48  2011-09-20 11:02:49  
2 19791 2011-09-20 11:02:49  2011-09-20 11:02:50  
2 19795 2011-09-20 11:02:50  2011-09-20 11:02:51
.
.
2 20839 2011-09-20 11:06:04  2011-09-20 11:06:05
2 20847 2011-09-20 11:06:05  2011-09-20 11:06:07
2 20859 2011-09-20 11:06:06  2011-09-20 11:06:08  


how to adjust the both timer any suggestion?


thanks in advance.....