Task Delay vs Thread Sleep Resolution Accuracy
问题 i need to execute a function after a specific amount of time, therefore i use this code. _start = DateTime.Now; await Task.Delay(_app.Settings.AudioFileStartVarianz.BaseSpan).ContinueWith(x => { Console.WriteLine(DateTime.Now - _start); }); Lets say i want to wait for exactly 0.04 seconds. My problem now is that it's not working precise enough. I get following output after calling the function 5 times: 00:00:00.0414220 00:00:00.0536098 00:00:00.0507841 00:00:00.0467757 00:00:00.0425790 if i