note 65914 added to function.getrusage
| From: | kenman at osu1 dot php dot net | Date: | Wed, 10 May 2006 06:16:12 +0000 |
| Subject: | note 65914 added to function.getrusage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111015@lists.php.net to get a copy of this message | ||
Why is it that whenever I use this, the returned value is always nn997-nn999? Although the user time
is very close to the time reported with microtime(), microtime() gives fluctuating results past the
first 2 digits, whereas getrusage() does not. Does anyone have an explanation for this?
p.s.
To adjust the time to the actual decimal time, multiply the values by 1e-6, like so:
1e-6*($dat['ru_utime.tv_sec']*1e6 + $dat['ru_utime.tv_usec']);
----
Server IP: 216.194.113.175
Probable Submitter: 66.90.143.73
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.getrusage.php
Edit -- http://master.php.net/note/edit/65914
Del: integrated -- http://master.php.net/note/delete/65914/integrated
Del: useless -- http://master.php.net/note/delete/65914/useless
Del: bad code -- http://master.php.net/note/delete/65914/bad+code
Del: spam -- http://master.php.net/note/delete/65914/spam
Del: non-english -- http://master.php.net/note/delete/65914/non-english
Del: in docs -- http://master.php.net/note/delete/65914/in+docs
Del: other reasons-- http://master.php.net/note/delete/65914
Reject -- http://master.php.net/note/reject/65914
Search -- http://master.php.net/manage/user-notes.php