TP-openmp/TP1/aux.c

11 lines
162 B
C
Raw Normal View History

2023-06-22 18:19:48 +00:00
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
long usecs (){
struct timeval t;
gettimeofday(&t,NULL);
return t.tv_sec*1000000+t.tv_usec;
}