#include #include #include int main(void){ struct timeval uno; struct timeval dos; gettimeofday(&uno, NULL); printf("hola\n"); gettimeofday(&dos, NULL); printf("Elapsed: %d seconds, %d microseconds.\n", (dos.tv_sec - uno.tv_sec), (dos.tv_usec - uno.tv_usec)); }