import time


def log_str(proc_str, start):
    """Create a preamble string for stdout."""
    former = "[{:>4}".format(proc_str)
    latter = "] {:.2f}".format(round(time.time() - start, 3))
    return former + latter