Use our monotonic everywhere

Gives nicer times relative to process start time than the python stdlib
monotonic
This commit is contained in:
Kovid Goyal
2024-03-26 13:26:18 +05:30
parent 304c68ba6f
commit ede332fecf
7 changed files with 10 additions and 9 deletions

View File

@@ -11,7 +11,6 @@ import string
import sys
from contextlib import contextmanager, suppress
from functools import lru_cache
from time import monotonic
from typing import (
TYPE_CHECKING,
Any,
@@ -43,7 +42,7 @@ from .constants import (
shell_path,
ssh_control_master_template,
)
from .fast_data_types import WINDOW_FULLSCREEN, WINDOW_MAXIMIZED, WINDOW_MINIMIZED, WINDOW_NORMAL, Color, Shlex, get_options, open_tty
from .fast_data_types import WINDOW_FULLSCREEN, WINDOW_MAXIMIZED, WINDOW_MINIMIZED, WINDOW_NORMAL, Color, Shlex, get_options, monotonic, open_tty
from .rgb import to_color
from .types import run_once
from .typing import AddressFamily, PopenType, Socket, StartupCtx