You could use Task.Delay for this:
var millisecondstimespan = TimeSpan.FromSeconds(10 * 1000;); await Task.Delay(millisecondstimespan); // or Task.Delay(millisecondstimespan).Wait(); I'm recommending this over Thread.Sleep, since Thread.Sleep blocks your entire Thread while waiting, whilst Task.Delay allows the Thread to deal with other work, while waiting.