pub fn plugin_register_add_timer(
        &mut self,
        timer_func: extern "C" fn(),
    ) -> ReaperFunctionResult<()> {
        unsafe { self.plugin_register_add(RegistrationObject::Timer(timer_func))? };
        Ok(())
    }
/// Registers a timer.
///
/// The given function will be called regularly until removal. Roughly 30 times per second,
/// just like the `run()` method of a control surface.
///
/// # Errors
///
/// Returns an error if the registration failed.
Registers a timer.
The given function will be called regularly until removal. Roughly 30 times per second,
just like the `run()` method of a control surface.
Registers a timer . The given function will be called regularly until removal . Roughly 30 times per second just like the ` run () ` method of a control surface .
pub fn plugin_register_add_timer(
        &mut self,
        timer_func: extern "C" fn(),
    ) -> ReaperFunctionResult<()> {
        unsafe { self.plugin_register_add(RegistrationObject::Timer(timer_func))? };
        Ok(())
    }
pub fn plugin_register_add_timer ( & mut self , timer_func : extern " " fn ( ) , ) -> ReaperFunctionResult < ( ) > { unsafe { self . plugin_register_add ( RegistrationObject :: Timer ( timer_func ) ) ? } ; Ok ( ( ) ) }
Registers a timer.
Registers a timer .
&mut self
timer_func
extern "C" fn()
&mut self
timer_func
extern "C" fn()
errors
Returns an error if the registration failed.
Returns an error if the registration failed .