Added clock function for epeen
This commit is contained in:
parent
0058148f52
commit
f76474001b
@ -4,6 +4,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <time.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
@ -121,6 +122,7 @@ int get_id(char *ptr)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
clock_t begin = clock();
|
||||||
struct Games games;
|
struct Games games;
|
||||||
games.iterator = 0;
|
games.iterator = 0;
|
||||||
int MAX_RED = 12;
|
int MAX_RED = 12;
|
||||||
@ -216,6 +218,8 @@ int main()
|
|||||||
printf("Unmapping failed");
|
printf("Unmapping failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
clock_t end = clock();
|
||||||
|
double time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
|
||||||
|
printf("%f", time_spent);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user