Skip to content

Commit 6c1df0b

Browse files
kojorusdwheeler
authored andcommitted
Separate two examples in Measure-Command (#4783)
1 parent f919d05 commit 6c1df0b

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

reference/3.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

reference/4.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

reference/5.0/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

reference/5.1/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

reference/6/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

reference/7/Microsoft.PowerShell.Utility/Measure-Command.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ TotalSeconds : 0.0122672
104104
TotalMilliseconds : 12.2672
105105
```
106106

107+
### Example 4: Displaying output of measured command
108+
109+
To display output of expression in `Measure-Command` you can use a pipe to `Out-Default`.
110+
107111
```powershell
108112
# Perform the same operation as above adding Out-Default to every execution.
109113
# This will show that the ScriptBlock is in fact executing for every item.

0 commit comments

Comments
 (0)