Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

On WASI, time.process_time is not in seconds #115714

Closed
Assignees
encukou
Labels
OS-wasitype-bugAn unexpected behavior, bug, or error
@encukou

Description

@encukou

In a fresh WASI build,time.process_time, which should be in seconds, counts 10⁶ times faster thantime.time:

>>> import time>>> time.time(); time.process_time()1708435312.5965584775079350.12>>> time.time(); time.process_time()1708435313.09494614780063256.54>>> time.get_clock_info('process_time')namespace(implementation='clock_gettime(CLOCK_PROCESS_CPUTIME_ID)', monotonic=True, adjustable=False, resolution=1e-09)

It looks likeWASI might removeCLOCK_PROCESS_CPUTIME_ID. Should we wait for that? Remove it from Python sooner? Work around the issue?

(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.)

Linked PRs

Metadata

Metadata

Assignees

Labels

OS-wasitype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp