Skip to content

Instantly share code, notes, and snippets.

@zaccharles
Created January 12, 2019 00:11
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 zaccharles/e29c5646b3880479daf229e019c4039c to your computer and use it in GitHub Desktop.
Save zaccharles/e29c5646b3880479daf229e019c4039c to your computer and use it in GitHub Desktop.
private void Background()
{
var count = 0;
var stopwatch = new System.Diagnostics.Stopwatch();
while(true)
{
stopwatch.Restart();
Thread.Sleep(1000);
Console.WriteLine($"{_id} / {count} / {stopwatch.ElapsedMilliseconds}");
count++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment