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
{{ message }}
Repository navigation
On WASI, time.process_time is not in seconds #115714
(Codespaces has an “unexpected error” for me right now, so I built the container from .devcontainer/Dockerfile directly. Hope that doesn't affect the result.)
It turns out the return value of sysconf(_SC_CLK_TCK) (number of clock ticks per second) is incorrect, at least for scaling times from CLOCK_PROCESS_CPUTIME_ID and times().
I'll prepare a PR that avoids calling them in time.
Activity
encukou commentedon Feb 20, 2024
@brettcannon, your thoughts on this?
brettcannon commentedon Feb 20, 2024
We should just remove it.
brettcannon commentedon Feb 20, 2024
It shouldn't. All Codespaces does on top of that container is inject a git checkout and configures VS Code automatically.
encukou commentedon Feb 21, 2024
It turns out the return value of
sysconf(_SC_CLK_TCK)(number of clock ticks per second) is incorrect, at least for scaling times fromCLOCK_PROCESS_CPUTIME_IDandtimes().I'll prepare a PR that avoids calling them in
time.pythongh-115714: Don't use CLOCK_PROCESS_CPUTIME_ID and times() on WASI
gh-115714: Don't use CLOCK_PROCESS_CPUTIME_ID and times() on WASI (GH…
brettcannon commentedon Feb 22, 2024
Thanks!
pythongh-115714: Don't use CLOCK_PROCESS_CPUTIME_ID and times() on WA…
pythongh-115714: Don't use CLOCK_PROCESS_CPUTIME_ID and times() on WA…
pythongh-115714: Don't use CLOCK_PROCESS_CPUTIME_ID and times() on WA…