Skip to content

Commit 10e8a89

Browse files
+ .\generate-objects-for-x-ms.ps1
1 parent a59a1f3 commit 10e8a89

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
param (
2+
$milliSeconds
3+
)
4+
5+
$ticks_ = (get-date).ticks
6+
7+
$i = 0
8+
while ( (get-date).ticks - $ticks_ -lt $milliSeconds * [System.TimeSpan]::TicksPerMillisecond ) {
9+
$i++
10+
[pscustomobject] @{num = $i; txt = 'abcdefghi' }
11+
12+
start-sleep -milliSecond 15
13+
14+
}
15+
16+
$i++; [pscustomobject] @{num = $i; txt = 'abcdefghijklmnopqrstuvwxyz' }
17+
$i++; [pscustomobject] @{num = $i; txt = 'abcdef' }

0 commit comments

Comments
 (0)