Improved timing and added ability to specify tick frequency.
Changed output to use carriage return.