/*
* call-seq:
* RubyCube.set_timer(interval, repeatCount)
*
* Returns the ID of the timer. Each time the timer is hit it will deliver a EVENT_TIMER
* event type. Timers with a repeatCount of -1 will repeat forever.
*
* === Parameters
* * +interval+ Interval time in seconds between timer events
* * +repeatCount+ -1, 0, N. -1 means repeat forever, 0 to N repeats the expected times
*
* === Examples
* RubyCube.set_timer(60, -1) # interval 60 seconds, repeat forever
* RubyCube.set_timer(.01, 10) # interval 10 milliseconds, repeat 10 times
*/
static
VALUE rbc_set_timer(VALUE self, VALUE time, VALUE repeat)
{
uint32 timer_id = timer_set(NUM2DBL(time), NUM2INT(repeat));
return INT2FIX(timer_id);
}