ID: 49134 Updated by: d...@php.net -Summary: docs for posix_times() does not specify units Reported By: spoon dot reloaded at gmail dot com Status: Open -Bug Type: Documentation problem +Bug Type: POSIX related -PHP Version: Irrelevant +PHP Version: 6 New Comment:
The times used in posix_times() are in "clock ticks", however there is currently no way to determine the number of "clock ticks per second" in PHP as it varies per system, so it doesn't translate back into a meaningful number. Reclassifying this as a POSIX-related issue. Can we get the output of sysconf(_SC_CLK_TCK) added as an array element in posix_times()? This would make this function useful. Previous Comments: ------------------------------------------------------------------------ [2009-08-02 06:54:05] spoon dot reloaded at gmail dot com Description: ------------ The posix_times() function returns an array with keys like "utime - user time used by the current process" and "stime - system time used by the current process". But the documentation does not say what units (seconds? microseconds? deciseconds?) are used for the "user time" or "system time". This makes the function completely useless, because one has no idea what the results mean. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49134&edit=1