What is your platform? time.process_time() supports many functions: - GetProcessTimes() (Windows only) - clock_gettime(CLOCK_PROF) - clock_gettime(CLOCK_PROCESS_CPUTIME_ID) - getrusage(RUSAGE_SELF) - times() - clock() On POSIX, clock() is always tried as a fallback. Does your platform support at least one of these functions?
I’m building against the Newlib libc, for the Wii, and it seems the issue leading to all of those functions not working is: (.text.clock+0x18): undefined reference to `_times_r' Threading is disabled, and reentrant functions as well, which could explain that. But still, when pyconfig.h doesn’t define any HAVE_ macro to get the system time, I would expect py_process_time() to return None or something instead of failing to build.