Skip to content

Get-PodeServerUptime

SYNOPSIS

Returns the uptime of the server in milliseconds.

SYNTAX

Get-PodeServerUptime [-Total] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Returns the uptime of the server in milliseconds. You can optionally return the total uptime regardless of server restarts.

EXAMPLES

EXAMPLE 1

$currentUptime = Get-PodeServerUptime

EXAMPLE 2

$totalUptime = Get-PodeServerUptime -Total

PARAMETERS

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Total

If supplied, the total uptime of the server will be returned, regardless of restarts.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Int64

NOTES