Timing.psm1

<#
.SYNOPSIS
    This function returns the JS code for delaying for a specified number of milliseconds.
#>

function Get-DelayMillisecondsCode {
    param (
        [Parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [String]$delayMilliseconds
    )
    return " await delay($($delayMilliseconds));"
}