def timeslips_encoder(x: float, t: int, n_time: int) -> list:
    """
    The inverse function of from_timeslips. Encodes milliseconds 
    as a list of ints; chunks of n_time - 1 plus a remainder: 
    r < n_time - 1.
    """
    n_time -= 1
    w, r = divmod(x / t, n_time)
    ret = [n_time for _ in range(int(w))]
    ret.append(int(round(r)))
    return ret