diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-22 15:23:15 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-22 15:23:15 +0200 |
| commit | 373857ad815fdce1a114f407547fa707bbce3643 (patch) | |
| tree | 941a2808c7da80979fa695e0c9072b919681283e /utilities.py | |
| parent | f665bcb2087748848ce89999696c8e1af4e28d16 (diff) | |
Added possibility to configure timer
Diffstat (limited to 'utilities.py')
| -rw-r--r-- | utilities.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utilities.py b/utilities.py index 2a34c05..7a9d55d 100644 --- a/utilities.py +++ b/utilities.py @@ -1,3 +1,4 @@ +from os import getenv from time import time from typing import Tuple from random import shuffle @@ -31,7 +32,7 @@ def sample_list(indices: list, cost: list[int], count: int = None) -> list: class Timer: ref: float = None running: bool = False - max_mins: float = 17.5 + max_mins: float = float(getenv("TIMER")) default: str = ("00", "00") def __post_init__(self): |
