Timers

The API gives you two methods to have a function called periodically:

void USetTimer (double period, Object o, String method_name, String[] args_name)
void USetTimer (double period, Object o, String method_name)