# waitTime

> The given amount of seconds that the yield instruction will wait for.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public float waitTime { get; set; }
```

### Examples

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

public class WaitForSecondsRealtimeExample : MonoBehaviour
{
    public float waitTime = 3;

    WaitForSecondsRealtime waitForSecondsRealtime;

    IEnumerator DoWaitTest()
    {
        Debug.Log("Start waiting: " + Time.realtimeSinceStartup);

        if (waitForSecondsRealtime == null)
            waitForSecondsRealtime = new WaitForSecondsRealtime(waitTime);
        else
            waitForSecondsRealtime.waitTime = waitTime;
        yield return waitForSecondsRealtime;

        Debug.Log("End waiting: " + Time.realtimeSinceStartup);
    }

    void OnGUI()
    {
        if (GUILayout.Button("Start Waiting"))
        {
            StartCoroutine(DoWaitTest());
        }
    }
}
```
