K
KK
Hi
I was testing a quicksort algorithm.
long startTime = DateTime.Now.Ticks; //ticks before sorting begins
q_sort( 0, mElements.Length-1 );
TimeSpan tp =new TimeSpan((DateTime.Now.Ticks - startTime)); //difference of
ticks
mSortTime = tp.TotalMilliseconds; //sort time in milliseconds
Still, it alwasy returns 0.0
But other algorithms returns a valid value.
However, there is a positive difference between the ticks too.
I can't understand why it is behaving like this. Btw, sorting
works in a different thread.
Any insight?
rgds
KK
I was testing a quicksort algorithm.
long startTime = DateTime.Now.Ticks; //ticks before sorting begins
q_sort( 0, mElements.Length-1 );
TimeSpan tp =new TimeSpan((DateTime.Now.Ticks - startTime)); //difference of
ticks
mSortTime = tp.TotalMilliseconds; //sort time in milliseconds
Still, it alwasy returns 0.0
But other algorithms returns a valid value.
However, there is a positive difference between the ticks too.
I can't understand why it is behaving like this. Btw, sorting
works in a different thread.
Any insight?
rgds
KK