Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Threading;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var timer = new Timer(o => Console.WriteLine("{0}: Ring!!!", DateTime.Now), null, TimeSpan.Zero, new TimeSpan(0, 0, 30));
- while (true)
- Thread.Yield();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement