mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
feat: add detailed timestamps to logging for better startup time tracking
This commit is contained in:
@@ -21,12 +21,18 @@ class DisplayManager:
|
||||
return cls._instance
|
||||
|
||||
def __init__(self, config: Dict[str, Any] = None):
|
||||
start_time = time.time()
|
||||
self.config = config or {}
|
||||
self._setup_matrix()
|
||||
logger.info("Matrix setup completed in %.3f seconds", time.time() - start_time)
|
||||
|
||||
font_time = time.time()
|
||||
self._load_fonts()
|
||||
logger.info("Font loading completed in %.3f seconds", time.time() - font_time)
|
||||
|
||||
def _setup_matrix(self):
|
||||
"""Initialize the RGB matrix with configuration settings."""
|
||||
setup_start = time.time()
|
||||
options = RGBMatrixOptions()
|
||||
|
||||
# Hardware configuration
|
||||
|
||||
Reference in New Issue
Block a user