Skip to content

Better metrics about sleep and group #921

Open

Description

@mstoykov

Currently if a group includes a 10 second sleep we are going to say that the group took 10 seconds, which while correct might not be what the enduser is interested in.
I propose that we:

  1. implement New metric to measure sleep times #880
  2. Have the group know that there was n seconds of sleep in it's current execution - probably through some new methods on lib.Group
  3. Add new metric group_sleep?
  4. Choose whether to remove the sleep time from the group_duration or add another metric that is the group_duration without the group_sleep or the reverse - have the group_duration be without the group_sleep but have another full_group_duration that includes the group_sleep

Activity

  1. markjmeier commented on Feb 8, 2019

    @markjmeier

    In my past experience working with users of the LI v3.0 product, I never really encountered anyone who was interested in knowing sleep times within their script. Quite frankly, I don't think it's that interesting to keep track of - it's just measuring idle time. For users that do desire to know it, it shouldn't be that difficult to create a custom metric and calculate how long the sleep times are within any given script.

    If there are cases where it is interesting, I'd love to know them. But I think just making sure groups deduct sleep time from their total time would improve the usefulness of group time.

  2. added 2 commits that reference this issue on Jul 24, 2026
    7fb4b21
    72a9e62
  3. github-actions commented on Oct 19, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last year. It will be closed in 30 days if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. Thank you for your contributions!

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions