This commit is contained in:
2025-09-04 15:35:33 +02:00
parent d57594fc06
commit 0be5f67093
18 changed files with 188 additions and 0 deletions

32
SCR3.1/TP1/Ex4/ij_ji.c Normal file
View File

@@ -0,0 +1,32 @@
#include<stdio.h>
#include<time.h>
#include <stdlib.h>
#define N 8192
int t[N][N];
static inline double tstamp(void)
{
struct timespec tv;
clock_gettime(CLOCK_REALTIME, &tv);
return tv.tv_sec + tv.tv_nsec * 1.0e-9;
}
int main()
{
int i,j;
double t1,t2;
t1=tstamp();
for(i=0;i<N;i++) for(j=0;j<N;j++)
t[i][j] = 1;
t2=tstamp();
printf("time = %lf\n",t2-t1);
return 0;
}