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
![]()
brain at winbot dot co dot uk
27-Jun-2004 09:14
doesnt work with freebsd. as stated above the clock ticks at different intervals on different platforms.
not_rich_yet at hotmail dot com
20-Jul-2003 07: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
18-Jun-2003 02: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
21-Nov-2002 05: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. | ![]() | ||