-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.000 CPU in display by time/1 built-in #1334
Comments
Works fine for me. What OS? Possibly in a VM? Looks more like an OS issue than a SWI-Prolog issue. SWI-Prolog just queries the relevant OS call. |
Maybe this can be ignored. Could be an artefact the time granulatrity of the time measurement used. Title: JVMPI GetCurrentThreadCpuTime() always returns zero time when using NSJ 1.3 |
There is no portable way to get thread CPU time. What is implemented works most of the time on quite a wide range of systems using various OS specific techniques . This should most probably be considered an OS issue if it does not work as advertised. |
I could produce just now with SWI-Prolog 9.3.14,
tested on Windows 11 Pro, 22631.4460:
The test case was:
The text was updated successfully, but these errors were encountered: