Example #1
0
 public static Task startTimer()
 {
     Loop = new Timer()
     {
         Interval  = RepeatingTimer.SecondsToMilli(5),
         AutoReset = false,
         Enabled   = true
     };
     Loop.Elapsed += onTimerTicked;
     return(Task.CompletedTask);
 }