import time


def calculate_diff_time(previous_time):
    '''
    :param previous_time:之前的时间
    :return: 两者的差值时间
    '''
    elapsed = time.time() - previous_time
    return elapsed

f2693c3fc43271b4a2bba48cef115e9a4184f146
<mask token>

<mask token>


def calculate_diff_time(previous_time):
    """
    :param previous_time:之前的时间
    :return: 两者的差值时间
    """
    elapsed = time.time() - previous_time
    return elapsed

import time


def calculate_diff_time(previous_time):
    """
    :param previous_time:之前的时间
    :return: 两者的差值时间
    """
    elapsed = time.time() - previous_time
    return elapsed

import time


def calculate_diff_time(previous_time):
    '''
    :param previous_time:之前的时间
    :return: 两者的差值时间
    '''
    elapsed = time.time() - previous_time
    return elapsed
