timer
Files: timer.h, timer.c
Tap-tempo like timer
When triggered, timer will begin an internal stopwatch until it is triggered again.
The output of the timer will be the time elapsed in seconds.
sp_timer_create(sp_timer **timer)
sp_timer_init(sp_data *sp, sp_timer *timer)
sp_timer_compute(sp_data *sp, sp_timer *timer, SPFLOAT *clock, SPFLOAT *out)
sp_timer_destroy(sp_timer **timer)
Inputs
clock: When non-zero, will start/stop the timer.
Outputs
out: Outputs the time of the last timer (in seconds).