SphereServer BugTracker - SphereServer
View Issue Details
0002177SphereServernew feature requestpublic21-07-13 06:1005-08-13 16:46
xwerswoodx 
Ben 
normalmajorN/A
resolvedfixed 
16-06-2013, 0.56b Prerelease 
0.56c Nightly 
Not Available
None
None
0002177: TIMERF
Can you pls add zero-based list for timerf like

TIMERF.COUNT = Count
TIMERF.0|1|2... = Shows function for example
TIMERF.N.STOP || TIMERF.N 0|-1... (<= 0) || TIMERF.N.CLEAR = remove timer
TIMERF.N.SECS = shows how many secs left
TIMERF.N.FUNCTION = TIMERF.N

TIMERF 100,f_asddasd (TIMERF.0 = f_asddasd)

If is it possible, it will be very good for our scripts.
No tags attached.
Issue History
21-07-13 06:10xwerswoodxNew Issue
31-07-13 19:24xwerswoodxNote Added: 0001606
04-08-13 14:37BenNote Added: 0001616
04-08-13 14:55BenNote Edited: 0001616bug_revision_view_page.php?bugnote_id=0001616#r515
04-08-13 21:11xwerswoodxNote Added: 0001619
05-08-13 16:46BenNote Added: 0001620
05-08-13 16:46BenStatusnew => resolved
05-08-13 16:46BenFixed in Version => 0.56c Nightly
05-08-13 16:46BenResolutionopen => fixed
05-08-13 16:46BenAssigned To => Ben

Notes
(0001606)
xwerswoodx   
31-07-13 19:24   
up
(0001616)
Ben   
04-08-13 14:37   
(edited on: 04-08-13 14:55)
I really don't see much use to this, and would be very complicated to add because of how the timerf is structured now.

It would be possible to add a (TIMERF STOP function_name) which I think would be usefull and would only stop 1 timerf instead of the (TIMERF CLEAR) function that already exist.

I could always also add a (ISTIMERF function_name) to check if a TIMERF is present.

(0001619)
xwerswoodx   
04-08-13 21:11   
These can be solution for us, thanks (:
(0001620)
Ben   
05-08-13 16:46   
This will be added in this form

- <ISTIMERF.functionname> to check if a timer exists. Returns the time left in sec if it exists or 0 if not.
- TIMERF STOP,functionname to stop a specific timerf.