|
-
Jun 15th, 2009, 08:20 PM
#1
Thread Starter
Frenzied Member
Difference between System.Timers.Timer and System.Windows.Forms.Timer?
Hey, I'm wondering what exactly is the difference System.Timers.Timer and System.Windows.Forms.Timer???
Kind Regards
-
Jun 15th, 2009, 08:50 PM
#2
Re: Difference between System.Timers.Timer and System.Windows.Forms.Timer?
-
Jun 15th, 2009, 09:16 PM
#3
Thread Starter
Frenzied Member
Re: Difference between System.Timers.Timer and System.Windows.Forms.Timer?
Thanks, I read some of it, doesn't appear to be anything relevant to me, interesting to know the Windows.Forms.Timer is only accurate to 55ms though o_O
Kind Regards
-
Jun 15th, 2009, 09:20 PM
#4
Re: Difference between System.Timers.Timer and System.Windows.Forms.Timer?
The main point to note is that the WinForms Timer is single-threaded, i.e. it raises its Tick events on the UI thread, where the Timers.Timer raises its Elapsed events on a thread pool thread by default. As such, the WinForms Timer is good for just updating the UI or quick calculations but anything that will take time is best done with a Timers.Timer.
-
Jun 15th, 2009, 10:09 PM
#5
Thread Starter
Frenzied Member
Re: Difference between System.Timers.Timer and System.Windows.Forms.Timer?
I see, thanks a lot jm.
Kind Regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|