Skip to content

Conversation

@paarthmadan
Copy link
Contributor

@paarthmadan paarthmadan commented Oct 4, 2021

This pull request contains two changes.

  1. Correctly documenting the default behaviour of the format method.

The default FORMAT string is currently: "%10.6u %10.6y %10.6t %10.6r\n"
This represents user time, system time, total time, and elapsed real time, respectively.

The current documentation forgets to mention that total time is included.

  1. Clarify that total time includes the children's user and system times.

Certain references to the total time suggest that they are a sum of user CPU time and system CPU time. I think we should be more specific and highlight that the total includes the children's user and system CPU times as it is not readily apparent until looking much deeper into the documentation and codebase.

@hsbt hsbt merged commit b9db5dd into ruby:master May 30, 2025
@hsbt
Copy link
Member

hsbt commented May 30, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants