Remove output_duration(), plus some time related variables and replace with three lines of code.  Fix "scan type" print output on start.