I want to get the maximum count I have to execute a loop for it to take x milliseconds to finish.
For eg.
int GetIterationsForExecutionTime(int ms) {
var sw = Stopwatch.StartNew(); ... long elapsedMilliseconds = sw.ElapsedMilliseconds;