aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/timer.lua9
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
76assert( caught[T1] ) 76assert( caught[T1] )
77assert( caught[T2] ) 77assert( caught[T2] )
78 78
79
80PRINT( "\n*** Listing timers ***\n" )
81local r = lanes.timers() -- list of {linda, key, {}}
82for _,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])
85end
86
87
79PRINT( "\n*** Clearing timers ***\n" ) 88PRINT( "\n*** Clearing timers ***\n" )
80 89
81lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks 90lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks