Created
September 26, 2016 22:36
-
-
Save nbxx/898804738fdc624db15999dff5a88203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Threading; | |
using DevLib.Diagnostics; | |
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Benchmark.Run(i => | |
{ | |
// Benchmark code piece here | |
Thread.Sleep(3000); | |
}); | |
Benchmark.Run(i => | |
{ | |
// Benchmark code piece here, and run 5 times | |
Thread.Sleep(1000); | |
}, iteration: 5); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment