Im tring an experiment that will generate 7000 integer random numbers and save them in an array. Then I need to copy these 7000 values into a second array, so that I have two identical integer arrays.
In a function, I want to sort the first array with an un-optimized bubble sort.
In a second function, I want to sort the second array with an optimized bubble sort.

So in the main, I would like to print out the time each sort routine took to execute and print out a message determining which sort routine was faster.

Any Ideas, I made this one up for fun to also learn how to do arrays and counts.


Any help would be appreciated.....

I will give an attempt to this an update

Well it sound like you've got the logic already figured out, and dependant upon operating system I would recommend researching high precision timers in either *nix or windows.