Time.deltaTime in Editor script

I’ve come to realize that Time.deltaTime does not update in an editor script. I need a timed countdown in this particular script. Is there any way to achieve this in editor?

http://unity3d.com/support/documentation/ScriptReference/EditorApplication-timeSinceStartup.html

You could use the Time.realtimeSinceStartup.

var timeOut : float;

function StartCountdown(seconds : float)
{
    timeOut = Time.realtimeSinceStartup + seconds;
}

function Update()
{
    if (Time.realtimeSinceStartup > timeOut)
    {
        // do something
    }
}

It’s just the basic concept :wink: