Improved time logging

KNOWN BUG: only works when multiple input files selected. Does not work
when one file selected.