Documentation | posix-user: Add getrusage (!31)

Chris Johns (@chris) gitlab at rtems.org
Thu Jul 18 05:29:53 UTC 2024




Chris Johns commented on a discussion on posix-users/process_environment.rst: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/31#note_109520

 > +exist when the call is made and the field ``ru_stime`` returning the
 > +total idle time.
 > +
 > +A ``who`` value of ``RUSAGE_THREAD`` results in the ``struct rusage``
 > +field ``ru_utime`` returning the total active time of the current
 > +thread and the field ``ru_stime`` is set to 0.
 > +
 > +
 > +**NOTES:**
 > +
 > +The time returned can be more than the system up time if there is more
 > +than one CPU.
 > +
 > +This routine is implemented using the internal thread iterator and
 > +accounts for time spent by the currently active threads. RTEMS does
 > +not account for the execuiton time of threads that are no longer

Fixed. Thanks.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/docs/rtems-docs/-/merge_requests/31#note_109520
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240718/fe609cc0/attachment.htm>


More information about the bugs mailing list