Added clock function for epeen

This commit is contained in:
Benjamyn Love 2023-12-04 23:34:12 +11:00
parent 0058148f52
commit f76474001b

View File

@ -4,6 +4,7 @@
#include <fcntl.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include <sys/mman.h>
#include <sys/stat.h>
@ -121,6 +122,7 @@ int get_id(char *ptr)
int main()
{
clock_t begin = clock();
struct Games games;
games.iterator = 0;
int MAX_RED = 12;
@ -216,6 +218,8 @@ int main()
printf("Unmapping failed");
return 1;
}
clock_t end = clock();
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
printf("%f", time_spent);
return 0;
}