c0ac23b21d
* Load and populate Ubisoft information when the page is shown instead of startup. * List all Ubisoft games, and differentiate based on whether they been redeemed.
10 lines
252 B
Python
10 lines
252 B
Python
import time
|
|
from contextlib import contextmanager
|
|
from logging import Logger
|
|
|
|
|
|
@contextmanager
|
|
def timelogger(logger: Logger, title: str):
|
|
start = time.perf_counter()
|
|
yield
|
|
logger.debug("%s: %s seconds", title, time.perf_counter() - start)
|