---
title: "extendPowerOff(by:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsworkspace/extendpoweroff(by:)"
---

# extendPowerOff(by:)

Requests the system wait for the specified amount of time before turning off the power or logging out the user.

## Declaration

```swift
func extendPowerOff(by requested: Int) -> Int
```

## Parameters

- `requested`: The number of milliseconds to wait before turning off the power or logging off the user.

## Return Value

Return Value The number of milliseconds granted by the system. This method currently returns 0.

## Discussion

Discussion This method currently does nothing. Do not call it.
