You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the timing.py, you can use this code snippet instead, it gives you almost the same result:
def _get_cpu_time() -> float:
"""
Generates the cpu time to report. Adds the user and system time, following the implementation from timing-asgi
"""
return time.process_time()
Activity
[-][BUG][/-][+][BUG] Does not import on Windows[/+]ninyawee commentedon Jan 9, 2021
work around is to run the fastapi app in docker.
don't know what is the equivalent package on windows side.
uncovor commentedon Oct 29, 2021
Any update in this bug?
menaitm commentedon Jun 15, 2022
any update?
rabigabor commentedon Sep 2, 2022
In the timing.py, you can use this code snippet instead, it gives you almost the same result:
(Python 3.3+ needed)