Question: in what kind of event are you trying to use this?

Suggestion: use a timer and an on signal event to continue.