added debug timer