C# timer getting fired before their interval time

Posted by Swati Ghaisas on Stack Overflow See other posts from Stack Overflow or by Swati Ghaisas
Published on 2010-03-12T10:55:53Z Indexed on 2010/03/12 10:57 UTC
Read the original article Hit count: 292

Filed under:
|
|
|

Hi,

We're getting following problem while using system.threading.timer ( .net framework 2.0 ) from a Windows service.

  1. There are around 12 different timer objects..
  2. Each timer has due time and interval. This is set correctly.
  3. It is observed that after 3 to 4 hours, the timers start signalling before their interval elapses. For example if the timer is supposed to signal at 4:59:59, it gets signalled at 4:59:52, 7 seconds earlier.

Can someone tell me what is the cause for this behavior and what is the solution for that ?

Thanks, Swati

© Stack Overflow or respective owner

Related posts about .NET

Related posts about timer