POSIX_TIMES(3) 1 POSIX_TIMES(3)
posix_times - Get process times
SYNOPSIS
array posix_times (void )
DESCRIPTION
Gets information about the current CPU usage.
RETURN VALUES
Returns a hash of strings with information about the current process CPU usage. The indices of the hash are:
o ticks - the number of clock ticks that have elapsed since reboot.
o utime - user time used by the current process.
o stime - system time used by the current process.
o cutime - user time used by current process and children.
o cstime - system time used by current process and children.
NOTES
Warning
This function isn't reliable to use, it may return negative values for high times.
EXAMPLES
Example #1
Example use of posix_times(3)
<?php
$times = posix_times();
print_r($times);
?>
The above example will output something similar to:
Array
(
[ticks] => 25814410
[utime] => 1
[stime] => 1
[cutime] => 0
[cstime] => 0
)
PHP Documentation Group POSIX_TIMES(3)