Skip to content

Add Runtime (Timespan) property to Microsoft.PowerShell.Commands.HistoryInfo #4181

Closed

Description

As is, we have StartExecutionTime and EndExecutionTime.

We should add a property, RunTime defined as EndExecutionTime - StartExecutionTime, since at least in my experience, I am more concerned with how long a command took to execute than when it ran.

Activity

  1. added
    Issue-Enhancement
    Up-for-Grabs
    on Jul 5, 2017
  2. SteveL-MSFT commented on Jul 5, 2017

    @SteveL-MSFT
    Member

    Seems like we can just use ETS to add a RunTime property and perhaps consider updating get-history formatting to include runtime by default as a column

  3. lzybkr commented on Jul 7, 2017

    @lzybkr
    Contributor

    Kirk Munro (@KirkMunro) adds the property Duration in HistoryPx. I believe he was considering integrating his ideas in HistoryPx into PowerShell Core.

  4. powercode commented on Jul 10, 2017

    @powercode
    CollaboratorAuthor

    Steve Lee (@SteveL-MSFT) Would that be easier than to add the property in code?

  5. SteveL-MSFT commented on Jul 14, 2017

    @SteveL-MSFT
    Member

    Staffan Gustafsson (@powercode) personally, I'm fine either way

  6. added
    WG-Cmdlets
    and removed on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementResolution-FixedUp-for-GrabsWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions