Here is a Way to Time a Piece of Code
#include <ctime> // or include <time.h>
....
int main( )
{
clock_t startTime, endTime;
startTime = clock( );
******************************
Program segment to be timed
****************************
endTime = clock( );
endTime-startTime is the time it took.
}
You should repeat this for every sorting algorithm and for each array size.