Skip to content

Execution Time always shows 0ms #5694

Discussion options

You must be logged in to vote

@abdalmoniem as this is a built-in function, overriding that will ruin these lines inside oh-my-posh' script:

$lastHistory = Get-History -ErrorAction Ignore -Count 1
$script:ExecutionTime = ($lastHistory.EndExecutionTime - $lastHistory.StartExecutionTime).TotalMilliseconds

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@abdalmoniem
Comment options

@JanDeDobbeleer
Comment options

Answer selected by abdalmoniem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #5693 on September 30, 2024 11:59.