diff options
Diffstat (limited to 'tests/timer.lua')
-rw-r--r-- | tests/timer.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/timer.lua b/tests/timer.lua index 84e6dec..953e4ed 100644 --- a/tests/timer.lua +++ b/tests/timer.lua | |||
@@ -76,6 +76,15 @@ end | |||
76 | assert( caught[T1] ) | 76 | assert( caught[T1] ) |
77 | assert( caught[T2] ) | 77 | assert( caught[T2] ) |
78 | 78 | ||
79 | |||
80 | PRINT( "\n*** Listing timers ***\n" ) | ||
81 | local r = lanes.timers() -- list of {linda, key, {}} | ||
82 | for _,t in ipairs( r) do | ||
83 | local linda, key, timer = t[1], t[2], t[3] | ||
84 | print( tostring( linda), key, timer[1], timer[2]) | ||
85 | end | ||
86 | |||
87 | |||
79 | PRINT( "\n*** Clearing timers ***\n" ) | 88 | PRINT( "\n*** Clearing timers ***\n" ) |
80 | 89 | ||
81 | lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks | 90 | lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks |