mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-03 23:19:28 -05:00
tools added Get-TextCasesDuration.ps1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
$result = 0
|
||||
|
||||
Get-Content .\pp.txt
|
||||
| Select-String -Pattern '^ <Duration msecs="(.*)"/>'
|
||||
| ForEach-Object {
|
||||
$_ -cmatch '<Duration msecs="(.*)"/>' | Out-Null
|
||||
[float] $Matches[1]
|
||||
}
|
||||
| ForEach-Object { $result += $_ }
|
||||
|
||||
$result / 1000
|
||||
Reference in New Issue
Block a user