Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/03/2008, 23:11
riquei
 
Fecha de Ingreso: enero-2008
Mensajes: 5
Antigüedad: 17 años, 1 mes
Puntos: 0
Re: Comando para conocer el tiempo de ejecucion del programa

#include <time.h>

clock_t start, end;
double cpu_time_used;
start = clock();
-----------------------------------------
----------------------------------------
----------------------------------------
end = clock();
cpu_time_used = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("Tiempo invertido = %lf \n",cpu_time_used);