def formatUs(time):
    """Format human readable time (input in us)."""
    if time < 1000:
        return f"{time:.2f} us"

    time = time / 1000
    if time < 1000:
        return f"{time:.2f} ms"

    time = time / 1000
    return f"{time:.2f} s"