I'm using a DispatcherTimer to call a void in C#:
counter = new System.Windows.Threading.DispatcherTimer();
counter.Tick += new EventHandler(counter_Tick);
counter.Interval = new TimeSpan(0, 0, 1);
TimeSpan object has a constructor that takes milliseconds as a parameter:
MSDN has the details: https://msdn.microsoft.com/en-us/library/6c7z43tw(v=vs.110).aspx
new TimeSpan(0, 0, 1) with
new TimeSpan(0, 0, 0, 0, millisecondTimeout).