#include "header.h" int reporttime(int size, double *time) { double cuku=(double)CLOCKS_PER_SEC; //This prints out how long it took to calculate the sin for each method //And the total number of inputs presented for calculation. //Not really that helpful, to be honest, for small lists of inputs. //timearray is of size 3. printf("For a total of %d computations\n",size); printf("C_sin took %lf, Maclaurin took %lf, CORDIC took %lf\n",time[0],time[1],time[2]); printf("Implications Follow.\n"); printf("Time in seconds:\n"); printf("C_sin: %lf, Maclaurin: %lf, CORDIC: %lf\n",time[0]/cuku,time[1]/cuku,time[2]/cuku); return size; }