add option -o for writing latencies to file.
misc