diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2012-12-17 12:02:33 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2012-12-17 12:02:33 +0100 |
commit | 944c38c5b4932e692caedbf431eff1b7e1c8ca13 (patch) | |
tree | 767d44d4c2507438f012726ab8e674ff1038cbeb /tests | |
parent | 6763dcaf19783bf2c877dd9707917c65eaf53dfe (diff) | |
download | lanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.tar.gz lanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.tar.bz2 lanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.zip |
Update tests/timer.lua
Diffstat (limited to 'tests')
-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 |