Wait

From Visual DialogShell Wiki
Jump to navigation Jump to search
function wait ($a) {
   if ($a -eq $null) {
       $a = 1
   }
   start-sleep -s $a | Out-Null
<#
   .SYNOPSIS
   Pauses script execution in seconds, which may be fractional.
    
   .DESCRIPTION
    VDS
   wait .1 # 1/10th of 1 second
   
   .LINK
   https://dialogshell.com/vds/help/index.php/wait
#>
}