O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 43. System.Timers

The System.Timers namespace provides the Timer class, which periodically raises an Elapsed event. It is a server-based component designed to be used in a multithreaded environment, and is thus more accurate than many other Windows-based timers. Unlike System.Windows.Forms.Timer, a server-based timer is not dependent on a user interface message pump. Figure 43-1 shows the class diagram for this namespace.

The System.Timers namespace

Figure 43-1. The System.Timers namespace

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required