Checking if a timer is paused ?

I need to check is a timer is already paused before I call timer.Pause, is there a way ?

Reason is if I call timer.Pause again, I get a warning in the terminal saying the timer is already paused.

EDIT: If warnings are fine, then I will leave it as is.

Dave [import]uid: 117617 topic_id: 35152 reply_id: 335152[/import]

You can always set a value on the timer object to indicate it’s state, but there is no timer.isPaused, for example.

You can always just pause it - the warning will not show in the display, only the console.

Take a look at my simple timer lib: http://developer.coronalabs.com/code/timer-functions [import]uid: 8271 topic_id: 35152 reply_id: 139736[/import]

You can always set a value on the timer object to indicate it’s state, but there is no timer.isPaused, for example.

You can always just pause it - the warning will not show in the display, only the console.

Take a look at my simple timer lib: http://developer.coronalabs.com/code/timer-functions [import]uid: 8271 topic_id: 35152 reply_id: 139736[/import]