def humanize(us) -> str:
    """Turn microseconds into human readable

    Parameters
    ----------
    us : int
        Microseconds

    Returns
    -------
    string
        us as milliseconds, seconds, minutes or hours
    """
    ms = 1000
    sec = 1000 * ms
    min = 60 * sec
    hour = 60 * min

    if us >= hour:
        return "%sh" % round(us/hour, 1)
    if us >= min:
        return "%sm" % round(us/min, 1)
    if us >= sec:
        return "%ss" % round(us/sec, 1)
    if us >= ms:
        return "%sms" % round(us/ms, 1)
    return "%sus" % us