# WaitForSecondsRealtime

> Suspends the coroutine execution for the specified real (unscaled) time in seconds.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Inherits from:** [CustomYieldInstruction](/engine/6000.0/script-reference/unityengine/customyieldinstruction.md)
* **Implements:** [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator)

```csharp
public class WaitForSecondsRealtime : CustomYieldInstruction, IEnumerator
```

## Remarks

`WaitForSecondsRealtime` can only be used with a `yield` statement in coroutines.

To wait using scaled time, refer to [WaitForSeconds](/engine/6000.0/script-reference/unityengine/waitforseconds.md).

```csharp
using UnityEngine;
using System.Collections;

public class WaitForSecondsExample : MonoBehaviour
{
    void Start()
    {
        StartCoroutine(Example());
    }

    IEnumerator Example()
    {
        print(Time.time);
        yield return new WaitForSecondsRealtime(5);
        print(Time.time);
    }
}
```

See Also [MonoBehaviour.StartCoroutine](/engine/6000.0/script-reference/unityengine/monobehaviour/startcoroutine.md).

## Constructors

| Constructor                                                                                                         | Description                                                                            |
| ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [WaitForSecondsRealtime(System.Single)](/engine/6000.0/script-reference/unityengine/waitforsecondsrealtime/ctor.md) | Creates a yield instruction to wait for a given number of seconds using unscaled time. |

## Properties

| Property                                                                                   | Description                                                           |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| [waitTime](/engine/6000.0/script-reference/unityengine/waitforsecondsrealtime/waittime.md) | The given amount of seconds that the yield instruction will wait for. |

## Inheritance

**Inherited Members:**

* [CustomYieldInstruction.keepWaiting](/engine/6000.0/script-reference/unityengine/customyieldinstruction/keepwaiting.md)
