From 944c38c5b4932e692caedbf431eff1b7e1c8ca13 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 17 Dec 2012 12:02:33 +0100 Subject: Update tests/timer.lua --- tests/timer.lua | 9 +++++++++ 1 file changed, 9 insertions(+) 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 assert( caught[T1] ) assert( caught[T2] ) + +PRINT( "\n*** Listing timers ***\n" ) +local r = lanes.timers() -- list of {linda, key, {}} +for _,t in ipairs( r) do + local linda, key, timer = t[1], t[2], t[3] + print( tostring( linda), key, timer[1], timer[2]) +end + + PRINT( "\n*** Clearing timers ***\n" ) lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks -- cgit v1.2.3-55-g6feb