def _getNsec ( nsecStr ) :
    """
    Turn string into nanoseconds, strings is everything that
    appears after decimal dot.
    "1"    -> 100000000 ns
    "123"  -> 123000000 ns
    "123456789987654321" -> 123456789ns (truncation, no rounding)
    """
    ndig = min(len(nsecStr),9)

    nsecStr = nsecStr[:ndig] + '0'*(9-ndig)
    return int(nsecStr)