Precisely measure execution time of code in thread (C#) Precisely measure execution time of code in thread (C#) multithreading multithreading