Ajout des TP

This commit is contained in:
stiti
2024-02-01 13:55:03 +01:00
parent 4fe273c309
commit 113583b37a
228 changed files with 7094 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <math.h>
int main(void){
int i;
struct timeval tv1;
struct timeval tv2;
gettimeofday(&tv1,NULL);
for(i=0;i<1000000;i++){
sqrt(2);
}
gettimeofday(&tv2,NULL);
printf("%dμs",tv2.tv_usec-tv1.tv_usec);
return EXIT_SUCCESS;
}