Skip to content
Snippets Groups Projects
Commit 2a35bba4 authored by Yasya Rusyda's avatar Yasya Rusyda
Browse files

Add print

parent 1bc397cb
Branches
No related merge requests found
......@@ -80,7 +80,7 @@ void radixsort(int *arr, int n)
// A utility function to print an array
void print(int arr[], int n){
for (int i = 0; i < n; i++)
cout << arr[i] << " ";
cout << arr[i] << "\n";
}
void rng(int* arr,int n){
......@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
clock_gettime(CLOCK_REALTIME, &start);
radixsort(arr,n);
clock_gettime(CLOCK_REALTIME, &stop);
//print(arr,n);
print(arr,n);
timespec duration = diff(start, stop);
long time = duration.tv_sec * 1000000 + duration.tv_nsec/1000;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment