mirror of
https://github.com/sandronator/finetuning_aufgabe4.git
synced 2026-09-04 00:26:06 +02:00
inors
This commit is contained in:
+2
-2
@@ -32,11 +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(strategy, end, start)
|
self._print_result(query_name, prefix, end, start)
|
||||||
self.connection.commit()
|
self.connection.commit()
|
||||||
|
|
||||||
|
|
||||||
def _print_result(self, strategy, end, start):
|
def _print_result(self, query_name, prefix, end, start):
|
||||||
duration = end - start
|
duration = end - start
|
||||||
minutes = int(duration // 60)
|
minutes = int(duration // 60)
|
||||||
seconds = duration % 60
|
seconds = duration % 60
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user