def fmt_ms(ms):
    """Take a time in milliseconds and convert it to mm:ss.ms"""
    time = int(ms)

    minutes = int(time / (60 * 1000))
    time -= minutes * (60 * 1000)

    seconds = time / 1000

    return str(minutes) + ':' + "{seconds:.3f}".format(seconds=seconds)