Browse Source

Fixed time

PabloPuig1 1 year ago
parent
commit
622468796a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sorting.py

+ 2
- 2
sorting.py View File

64
 	# mergeSort(mergelista) 				#ejecutamos el algoritmo mergeSort
64
 	# mergeSort(mergelista) 				#ejecutamos el algoritmo mergeSort
65
 	# acumulaMerge+=time.clock()-t1 	#acumulamos el tiempo de ejecucion
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
 	heapSort(heaplista)						#ejecutamos el algoritmo heapSort
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
 	# t1 = time.clock()				#seteamos el tiempo al empezar
71
 	# t1 = time.clock()				#seteamos el tiempo al empezar
72
 	# quickSort(quicklista)				#ejecutamos el algoritmo quickSort
72
 	# quickSort(quicklista)				#ejecutamos el algoritmo quickSort