public CCTimer(Object t,String s,float seconds){
  target=t;
  selector=s;
  interval=seconds;
  elapsed=-1;
  try {
    Class<?> cls=target.getClass();
    invocation=cls.getMethod(s,Float.TYPE);
  }
 catch (  NoSuchMethodException e) {
    e.printStackTrace();
  }
}

public CCTimer ( Object t , String s , float seconds ) { target = t ; selector = s ; interval = seconds ; elapsed = - 1 ; try { Class < ? > cls = target . getClass ( ) ; invocation = cls . getMethod ( s , Float . TYPE ) ; } catch ( NoSuchMethodException e ) { e . printStackTrace ( ) ; } }
initializes a timer with a target , a selector and an interval in seconds .
