History

import

Paul Batchelor committed 6 years ago

Commit a901d56No parent (first commit)585 files · +39271 −0Browse files

Showing the changes to modules/data/timer.lua (1 of 585 files). Show all

Unified · Split

modules/data/timer.lua+44−0
@@ -0,0 +1,44 @@
1+sptbl["timer"] = {
2+
3+ files = {
4+ module = "timer.c",
5+ header = "timer.h",
6+ example = "ex_timer.c",
7+ },
8+
9+ func = {
10+ create = "sp_timer_create",
11+ destroy = "sp_timer_destroy",
12+ init = "sp_timer_init",
13+ compute = "sp_timer_compute",
14+ },
15+
16+ params = {
17+ },
18+
19+ modtype = "module",
20+
21+ description = [[Tap-tempo like timer
22+
23+When triggered, timer will begin an internal stopwatch until it is triggered again.
24+The output of the timer will be the time elapsed in seconds.
25+]],
26+
27+ ninputs = 1,
28+ noutputs = 1,
29+
30+ inputs = {
31+ {
32+ name = "clock",
33+ description = "When non-zero, will start/stop the timer."
34+ },
35+ },
36+
37+ outputs = {
38+ {
39+ name = "out",
40+ description = "Outputs the time of the last timer (in seconds)."
41+ },
42+ }
43+
44+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t