Skip to content

Clarify that cpu_info times are expressed in milliseconds#60480

Merged
topolarity merged 8 commits intoJuliaLang:masterfrom
BioTurboNick:patch-20
Dec 27, 2025
Merged

Clarify that cpu_info times are expressed in milliseconds#60480
topolarity merged 8 commits intoJuliaLang:masterfrom
BioTurboNick:patch-20

Conversation

@BioTurboNick
Copy link
Copy Markdown
Contributor

Fixes #53577

Main thing I'm not sure of is if there are still some systems where these values might have unknown units?

@Seelengrab
Copy link
Copy Markdown
Contributor

Since this is coming from libuv, we probably shouldn't care about other systems.

@LilithHafner
Copy link
Copy Markdown
Member

@topolarity Are you willing to review this?

@topolarity
Copy link
Copy Markdown
Member

This change seems well-motivated to me, but _show_cpuinfo should be updated as well

@topolarity topolarity added backport 1.10 Change should be backported to the 1.10 release backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Dec 27, 2025
Copy link
Copy Markdown
Member

@topolarity topolarity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This has been wrong for... a long time (since 1.6 at least)

BioTurboNick and others added 2 commits December 26, 2025 22:56
Co-authored-by: Cody Tapscott <84105208+topolarity@users.noreply.github.com>
@topolarity topolarity merged commit 3d611fd into JuliaLang:master Dec 27, 2025
6 of 8 checks passed
KristofferC pushed a commit that referenced this pull request Jan 7, 2026
libuv reports times in milliseconds, but the Julia docs and show() use units of
1/Sys.SC_CLK_TCK which is 100 on my laptop. The mismatch might be due
to libuv changeset libuv/libuv@37a8aff.

Fixes #53577

(cherry picked from commit 3d611fd)
KristofferC pushed a commit that referenced this pull request Jan 8, 2026
libuv reports times in milliseconds, but the Julia docs and show() use units of
1/Sys.SC_CLK_TCK which is 100 on my laptop. The mismatch might be due
to libuv changeset libuv/libuv@37a8aff.

Fixes #53577

(cherry picked from commit 3d611fd)
KristofferC pushed a commit that referenced this pull request Jan 9, 2026
libuv reports times in milliseconds, but the Julia docs and show() use units of
1/Sys.SC_CLK_TCK which is 100 on my laptop. The mismatch might be due
to libuv changeset libuv/libuv@37a8aff.

Fixes #53577

(cherry picked from commit 3d611fd)
@KristofferC KristofferC mentioned this pull request Jan 9, 2026
40 tasks
@KristofferC KristofferC removed the backport 1.13 Change should be backported to release-1.13 label Jan 9, 2026
DilumAluthge pushed a commit that referenced this pull request Jan 9, 2026
libuv reports times in milliseconds, but the Julia docs and show() use units of
1/Sys.SC_CLK_TCK which is 100 on my laptop. The mismatch might be due
to libuv changeset libuv/libuv@37a8aff.

Fixes #53577

(cherry picked from commit 3d611fd)
@DilumAluthge DilumAluthge mentioned this pull request Jan 19, 2026
71 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Feb 3, 2026
@KristofferC KristofferC mentioned this pull request Feb 20, 2026
45 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.10 Change should be backported to the 1.10 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sys.cpu_info() documentation says time units are CLK_TCK, should be milliseconds

5 participants