mirror of
https://github.com/quantum5/optimize-later.git
synced 2025-04-24 12:32:04 -04:00
Using perf_counter across all platforms
This commit is contained in:
parent
7af4fb49f7
commit
340a1aab2a
|
@ -11,7 +11,7 @@ from optimize_later.utils import NoArgDecoratorMeta, with_metaclass
|
|||
from optimize_later import utils
|
||||
|
||||
log = logging.getLogger(__name__.rpartition('.')[0] or __name__)
|
||||
timer = [time.time, time.monotonic][os.name == 'nt']
|
||||
timer = time.perf_counter
|
||||
|
||||
|
||||
def _generate_default_name():
|
||||
|
|
Loading…
Reference in a new issue