mirror of
https://github.com/sandronator/finetuning_aufgabe4.git
synced 2026-09-04 08:36:09 +02:00
+3
-2
@@ -32,10 +32,11 @@ class BaseStrategy:
|
|||||||
start = time.time()
|
start = time.time()
|
||||||
self.cursor.execute(query)
|
self.cursor.execute(query)
|
||||||
end = time.time()
|
end = time.time()
|
||||||
self._print_result(query_name, end, start, prefix)
|
self._print_result(strategy, end, start)
|
||||||
|
self.connection.commit()
|
||||||
|
|
||||||
|
|
||||||
def _print_result(self, query_name, end, start, prefix):
|
def _print_result(self, strategy, end, start):
|
||||||
duration = end - start
|
duration = end - start
|
||||||
minutes = int(duration // 60)
|
minutes = int(duration // 60)
|
||||||
seconds = duration % 60
|
seconds = duration % 60
|
||||||
|
|||||||
Reference in New Issue
Block a user