I have a simple program that's supposed to sort a table, and measure the number of processor ticks needed to do it:
timePerRun = Stopwatch.StartNew();
QuickSortLibrary.Quicksort.QuickSort(tabOfInts, 0, tabOfInts.Length-1);
timePerRun.Stop();
The only problem is that when I'm trying to sort a table of ~15 elements, I get 1-4 ticks. Is it possible that it happens so quickly, or the stopwatch only measures what happens in this method, not in the one that does actual sorting?