added time conversion to timer class