You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The unit of the Time property of the RuleRecord class should be in millisecond, because in seconds we can not know the total execution time.
$Path='C:\temp'$File='Test.Rule.ps1'@'Rule Main { sleep -Milliseconds 350 $True} Rule Main2 { sleep -Milliseconds 350 $True} Rule Main3 { sleep -Milliseconds 300 $True} '@>"$Path\$File"$r='object'|Invoke-psrule-path "$path\$File"$r|select RuleID,Time
# RuleId Time# ------ ----# Test.Rule.ps1/Main 0# Test.Rule.ps1/Main2 0# Test.Rule.ps1/Main3 0$r|Measure-Object-Property Time -sum
# Count : 3# Average :# Sum : 0# Maximum :# Minimum :# Property : Time
The total time should be one second at least, and not the value zero.
The text was updated successfully, but these errors were encountered:
…lliseconds #191#192 (#205)
* Fix null DependsOn parameter #191
* Exclude VS test results
* Record rule time in milliseconds
* Add documentation on PSRule features #68
* Update change log #192
Is your feature request related to a problem? Please describe.
The unit of the Time property of the RuleRecord class should be in millisecond, because in seconds we can not know the total execution time.
The total time should be one second at least, and not the value zero.
The text was updated successfully, but these errors were encountered: