fix(libkernel): report elapsed process time for clock id 15 #18471
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18471"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-11-11T17:23:06Z.
What
Return elapsed time since libkernel initialization from clock ID 15. On a PS5 payload running firmware 13.590.001, clock 15 advanced with wall time during sleep and CPU load. The encoded process CPU clock retains its existing CPU accounting. The console's exact process start boundary and retail export behavior remain unverified. Console measurements
The separate resolution query is covered by #17958. #18466 and #18470 edit the same debt entry, so their merge order may require a small rebase.
Tested
guest_freebsd_clocks,guest_cpu_time_clocks,guest_thread_cpu_clock, andpublic_headers.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-11T17:33:29Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
2dba45641a:tools/check_conventions.pypassed;git diff --checkclean.guest_cpu_time_clocks_tests,guest_freebsd_clocks_tests,guest_thread_cpu_clock_testsbuilt cleanly.guest_cpu_time_clocks,guest_freebsd_clocks,guest_thread_cpu_clock):core/libs/prx/libkernel/Time/Time.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me