import time


def fmt_time(start_time):
    """Format the time since the start time in either seconds or milliseconds"""
    elapsed = time.time() - start_time
    if elapsed < 1.0:
        return f"{round(1000*elapsed,1)} milliseconds"
    else:
        return f"{round(elapsed, 1)} seconds"