def get_timestamp(milliseconds):
    """
    Generates timestamp for an amount of milliseconds

    Parameters
    ----------
    milliseconds : int
        Time in milliseconds

    Returns
    -------
    str
        Timestamp (in format H:M:S.milli)
    """
    hours = int(milliseconds / (60 * 60 * 1000))
    milliseconds = milliseconds - hours * (60 * 60 * 1000)
    minutes = int(milliseconds / (60 * 1000))
    milliseconds = milliseconds - minutes * (60 * 1000)
    seconds = int(milliseconds / 1000)
    milliseconds = milliseconds - seconds * 1000
    return "%s:%s:%s.%s" % (
        str(hours).zfill(2),
        str(minutes).zfill(2),
        str(seconds).zfill(2),
        str(milliseconds).zfill(3),
    )