Added a simple debug timer to time code