posix_times
Description
The posix_times of POSIX for PHP gets process times.
Syntax
posix_times(): array|false
Return
Returns a hash of strings with information about the current process CPU usage on success, false on failure.
Index | Description |
---|---|
ticks | the number of clock ticks that have elapsed since reboot. |
utime | user time used by the current process. |
stime | system time used by the current process. |
cutime | user time used by current process and children. |
cstime | system time used by current process and children. |
Examples
1 · void
<? $return = posix_times(); print_r($return);
Array ( [ticks] => 708455267 [utime] => 0 [stime] => 0 [cutime] => 0 [cstime] => 0 )
Links
POSIX
- posix_access
- posix_ctermid
- posix_eaccess
- posix_errno
- posix_fpathconf
- posix_get_last_error
- posix_getcwd
- posix_getegid
- posix_geteuid
- posix_getgid
- posix_getgrgid
- posix_getgrnam
- posix_getgroups
- posix_getlogin
- posix_getpgid
- posix_getpgrp
- posix_getpid
- posix_getppid
- posix_getpwnam
- posix_getpwuid
- posix_getrlimit
- posix_getsid
- posix_getuid
- posix_initgroups
- posix_isatty
- posix_kill
- posix_mkfifo
- posix_mknod
- posix_pathconf
- posix_setegid
- posix_seteuid
- posix_setgid
- posix_setpgid
- posix_setrlimit
- posix_setsid
- posix_setuid
- posix_strerror
- posix_sysconf
- posix_ttyname
- posix_uname