Home  Contents

timer:isActive

Event Core4 Lua Event System

SYNOPSIS

flag = tmr:isActive()

DESCRIPTION

Determines if the timer is not yet expired.

RETURN VALUE

A boolean indicating if the timer is still running.

NOTES

A cyclic timer is always active until stopped.

EXAMPLE

>  >  >  >  >  > 
app = event.new() tmr = app:timer() tmr:start(1000, true) print(tmr:isActive()) app:pause(1500) print(tmr:isActive())
true false

SEE ALSO