def get_micro_secs(real_str: str) -> int:
    """
    If there is a decimal point returns fractional part as an integer in units
    based on 10 to minus 6 ie if dealing with time; real_str is in seconds and any factional
    part is returned as an integer representing microseconds. Zero returned if no factional part
    :param real_str:  A string with optional fraction
    :return: decimal part as integer based on micro units eg microseconds
    """
    try:
        p1, p2 = real_str.split(".")
    except ValueError:
        return 0
    if p2:
        p2 = f"{p2:0<6}"
        return int(p2)
    return 0