Zeitmessung in nur_1_Bild
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
import time
|
||||||
|
|
||||||
import pymupdf # PyMuPDF
|
import pymupdf # PyMuPDF
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
@@ -320,8 +321,11 @@ class MainWindow(QMainWindow):
|
|||||||
"""
|
"""
|
||||||
print(f"Alpha geändert auf {alpha_value}")
|
print(f"Alpha geändert auf {alpha_value}")
|
||||||
# Nur die aktuell angezeigte Seite neu rendern
|
# Nur die aktuell angezeigte Seite neu rendern
|
||||||
|
start = time.time()
|
||||||
if self.current_pdf:
|
if self.current_pdf:
|
||||||
self.render_and_display_page(self.current_pdf, self.current_page)
|
self.render_and_display_page(self.current_pdf, self.current_page)
|
||||||
|
dauer = time.time() - start
|
||||||
|
print(f"Dauer: {dauer}")
|
||||||
|
|
||||||
def create_layered_pixmap(self, ref_pixmap, diff_pixmap, new_pixmap, alpha_value):
|
def create_layered_pixmap(self, ref_pixmap, diff_pixmap, new_pixmap, alpha_value):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user