def time_diff_in_ms(t1, t2):
    """Calculate the difference between two timestamps generated by time.time().

    Returned value will be a float rounded to 2 digits after point, representing
    number of milliseconds between the two timestamps.

    :type t1: float
    :type t2: float
    :rtype: float
    """
    return round((t2 - t1) * 1000.0, 2)
