Skip to content

Instantly share code, notes, and snippets.

@ChiiAyano
Created March 30, 2014 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChiiAyano/9867886 to your computer and use it in GitHub Desktop.
Save ChiiAyano/9867886 to your computer and use it in GitHub Desktop.
private async static void DelayTest()
{
for (int i = 0; i < 1000; i += 10)
{
Console.WriteLine("Delay Start! Delay Time: " + i);
var delay1Time = DateTime.Now;
await Task.Delay(i);
Console.WriteLine("OK Time: " + (DateTime.Now - delay1Time).TotalMilliseconds);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment