doesnt work with freebsd. as stated above the clock ticks at different intervals on different platforms.
for system uptime consider piping the uptime command or similar, depending on if performance is an issue or not.
![]() |
|
||||||||||
|
posix_timesDescriptionarray posix_times ( void )Returns a hash of strings with information about the current process CPU usage. The indices of the hash are
posix_times
brain at winbot dot co dot uk
26-Jun-2004 06:14
doesnt work with freebsd. as stated above the clock ticks at different intervals on different platforms.
not_rich_yet at hotmail dot com
19-Jul-2003 04:21
If you want the output to be 'grammatically correct' then try the following code. It will eg print '1 minute' as opposed to '1 minutes', the same goes for days and hours:
murphy at nmc-online dot co dot uk
17-Jun-2003 11:01
I am not sure why, and it could just be me but on my FreeBSD system using
rossz+php at vamos-wentworth dot org
20-Nov-2002 01:42
This function will return the system uptime as a human readable string such as "172 days, 18 hours, 15 minutes". I didn't bother to handle singular so the grammar could be a bit off, e.g. 1 hours. |