소스 검색

Fixed time

PabloPuig1 1 년 전
부모
커밋
622468796a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      sorting.py

+ 2
- 2
sorting.py 파일 보기

@@ -64,9 +64,9 @@ for i in range(veces):
64 64
 	# mergeSort(mergelista) 				#ejecutamos el algoritmo mergeSort
65 65
 	# acumulaMerge+=time.clock()-t1 	#acumulamos el tiempo de ejecucion
66 66
 	
67
-	t1 = time.time()						#seteamos el tiempo al empezar
67
+	t1 = time.process_time()						#seteamos el tiempo al empezar
68 68
 	heapSort(heaplista)						#ejecutamos el algoritmo heapSort
69
-	acumulaHeap += time.time() - t1			#acumulamos el tiempo de ejecucion
69
+	acumulaHeap += time.process_time() - t1			#acumulamos el tiempo de ejecucion
70 70
 	
71 71
 	# t1 = time.clock()				#seteamos el tiempo al empezar
72 72
 	# quickSort(quicklista)				#ejecutamos el algoritmo quickSort