Added timer class and updated timer example