/*! * \file * main.c * \brief * Main application file * * Created on: May 23, 2020 * Author: Christos Choutouridis AEM: 8997 * email : */ #include "assign2_impl.h" /* * Global data */ stats_t stats; // A function to implement bubble sort void bubbleSort(clock_t arr[], size_t n) { size_t i, j; clock_t t; for (i =0; i arr[j+1]) { t = arr[j]; arr[j] = arr[j+1]; arr[j+1] = t; } } /*! * Calculates and return the average of an array of measurements * \param t Pointer to measurements * \param n Size of measurements array * \return The average */ fp_data_t average (const clock_t *t, size_t n) { fp_data_t ret =0; for (size_t i=0 ; i