daily pastebin goal

Timer example for Yasmin

ncosentino Aug 18th, 2013 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var timer = new Timer();
  2. timer.Tick += (sender, e) =>
  3. {
  4.     // call your database code here
  5. };
  6. timer.Interval = 5000; // this value is in milliseconds
  7. timer.Start();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand