Skip to content

Commit 5ba4176

Browse files
sdwheelerDCtheGeek
authored andcommitted
Fix #4144 - seconds is now [double] (#4149)
* Fix #4144 - seconds is now [double] * fix type info * fix build error * Update Start-Sleep.md
1 parent 8fc9713 commit 5ba4176

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

reference/6/Microsoft.PowerShell.Utility/Start-Sleep.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
keywords: powershell,cmdlet
44
locale: en-us
55
Module Name: Microsoft.PowerShell.Utility
6-
md.date: 3/13/2019
6+
md.date: 04/10/2019
77
online version: http://go.microsoft.com/fwlink/?LinkId=821864
88
schema: 2.0.0
99
title: Start-Sleep
@@ -18,7 +18,7 @@ Suspends the activity in a script or session for the specified period of time.
1818
### Seconds (Default)
1919

2020
```
21-
Start-Sleep [-Seconds] <Int32> [<CommonParameters>]
21+
Start-Sleep [-Seconds] <Double> [<CommonParameters>]
2222
```
2323

2424
### Milliseconds
@@ -30,8 +30,7 @@ Start-Sleep -Milliseconds <Int32> [<CommonParameters>]
3030
## DESCRIPTION
3131

3232
The `Start-Sleep` cmdlet suspends the activity in a script or session for the specified period of
33-
time.
34-
You can use it for many tasks, such as waiting for an operation to complete or pausing before
33+
time. You can use it for many tasks, such as waiting for an operation to complete or pausing before
3534
repeating an operation.
3635

3736
## EXAMPLES
@@ -42,23 +41,19 @@ repeating an operation.
4241
Start-Sleep -s 15
4342
```
4443

45-
This command makes all commands in the session sleep for 15 seconds.
44+
### Example 2: Sleep all commands for 1.5 seconds
4645

47-
### Example 2: Sleep all commands
46+
This example makes all the commands in the session sleep for one and one-half of a seconds.
4847

4948
```powershell
50-
Start-Sleep -m 500
49+
Start-Sleep -Seconds 1.5
5150
```
5251

53-
This command makes all the commands in the session sleep for one-half of a second (500
54-
milliseconds).
55-
5652
## PARAMETERS
5753

5854
### -Milliseconds
5955

60-
Specifies how long the resource sleeps in milliseconds.
61-
The parameter can be abbreviated as **m**.
56+
Specifies how long the resource sleeps in milliseconds. The parameter can be abbreviated as **m**.
6257

6358
```yaml
6459
Type: Int32
@@ -74,11 +69,11 @@ Accept wildcard characters: False
7469
7570
### -Seconds
7671
77-
Specifies how long the resource sleeps in seconds.
78-
You can omit the parameter name (**Seconds**), or you can abbreviate it as **s**.
72+
Specifies how long the resource sleeps in seconds. You can omit the parameter name or you can
73+
abbreviate it as **s**. Beginning in PowerShell 6.2.0, this parameter now accepts fractional values.
7974
8075
```yaml
81-
Type: Int32
76+
Type: Double
8277
Parameter Sets: Seconds
8378
Aliases:
8479

@@ -115,5 +110,4 @@ This cmdlet does not return any output.
115110
- `Ctrl+C` does not break out of `[Threading.Thread]::Sleep`. For more information, see
116111
[Thread.Sleep Method](/dotnet/api/system.threading.thread.sleep).
117112

118-
119113
## RELATED LINKS

0 commit comments

Comments
 (0)