Shaarli NicolasMD !
Tag cloud
Picture wall
Daily
Plugins
  • ► Play Videos
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
Note: bip-bip.cs /shaare/h6iZqA
21/12/2017 14:19:12
using System;
using System.Threading;
​
namespace myApp
{
    class Program
    {
        public static void Main() {
            Program ex = new Program();
            ex.StartTimer(600);
            ex.StartTimer(1200);
            ex.StartTimer(1800);
            Console.WriteLine("Press Enter to end the program.");
        }
​
        public void StartTimer(int dueTime) {
            Timer t = new Timer(new TimerCallback(TimerProc));
            t.Change(dueTime, 0);
        }
​
        private void TimerProc(object state) {
            Timer t = (Timer) state;
            t.Dispose();
            Console.Beep();
            Console.WriteLine("The timer callback executes.");
        }
    }
}
3727 links, including 251 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn